-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slices do not work when not coming from a buffer #164
Comments
This comment was marked as outdated.
This comment was marked as outdated.
Potentially same issue / different repro: let chs = [0_u8, 2, 4];
for c in chs {
sum += match c {
// ...
};
} |
This issue is too vague. The "failure to cast" errors is just a Rust-GPU error that has always existed, we only care about regressions IMO. Did any of these examples work in Rust-GPU 0.9? I see a bunch of slice operations that have never been supported AFAIK. |
Sorry This is my first experience with rust gpu. |
I'll check for ya! |
Confirmed this exists in the last release. It is not a regression and not the same as #46 . |
@izissise Sorry, rust-gpu is still a work in progress and it looks like our slice support is a bit rough! |
On the old repo there had been a few issues like this: At some point I added a (that label goes beyond slices, but in general slices require being able to cast away the static type information in |
A minimal non compiling example
Originally posted by @izissise in #162 (reply in thread)
The text was updated successfully, but these errors were encountered: