-
Notifications
You must be signed in to change notification settings - Fork 245
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
Rust Language Support #78
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Should we update |
Hi folks! Is it possible that rust-gpu may one day support trait objects? I'm currently implementing "ray tracing in one weekend" with I realise what we can achieve when targeting SPIR-V is far more limited and that it might not be possible to achieve use of (edit: accidentally tapped "Comment" before finishing!) |
I think at some point in the future, it may - however, we'd first have to get through a SPIR-V spec change to be able to support dynamic dispatch. The Slang folks are considering doing this (we've discussed a bit about what rust-gpu's needs would be if a SPIR-V feature for dynamic dispatch was proposed), but it's likely a ways off (if it happens at all), and then even further beyond that to let drivers implement it, and beyond that rust-gpu can start implementing it. So, I wouldn't hold your breath. ( |
What about plain function pointers then? AFAIK spirv doesn't support these at all. |
Yep, SPIR-V doesn't support them at all right now. With the Slang folks considering pushing through an implementation for dynamic dispatch in SPIR-V, plain function pointers may be able to piggyback on the same infrastructure as well, we'll see (probably more likely than not some hack would make it work). However, we haven't heard any updates in a while (and our unrelated requests for changes/clarifications to the SPIR-V spec have not made much progress at all), so I wouldn't hold your breath. |
Hey! pub enum MyEnum<'a> {
A {
tmp: &'a Foo,
},
B {},
} Im not sure if its |
It seems that blockers of "debug builds" feature are all fixed at this moment. |
This is a tracking issue for adding support for using Rust language features and the
core
library withrustc_codegen_spirv
.Language Support
enum Foo { A, B }
enum Option<T> { Some(T), None }
loop
while
for
if
match
?
) operatorunion
-Z codegen-backend
, also see Tracking Issue for -Z codegen-backend rust-lang/rust#77933Compiler & Library Support
Option<T>
Features that don't work
&[T]
)About Tracking Issues
Tracking issues are meant for providing status updates on the progress of a feature, it's not meant for bug reports or discussions on a feature. Please instead file a new issue or join the
#rust-gpu
channel on Discord.The text was updated successfully, but these errors were encountered: