Uh oh!
There was an error while loading. Please reload this page.
Mark intrinsics as safe where possible, or provide safety docs - #394
Conversation
660fe41 to
beea207Comparebeea207 to
b49d192Comparenazar-pc
commented
Sep 22, 2025
This is very helpful! Looks like atomic operations like |
Firestar99
commented
Sep 22, 2025
Atomics are really difficult to make safe. You can misuse |
nazar-pc
commented
Sep 22, 2025
All the more reasons to add "Safety" section to them. If it is difficult to rust-gpu maintainers, there is no hope for casual GPU developers like myself to use them correctly 😂 On CPU at least atomic operations on integers are perfectly safe, there is no memory unsafety that can be caused by them. I recently opened #399, maybe atomics need to start working with standard library types like |
I'm deliberately skipping
mod raytracingsince the safely specification on those intrinsics is a little more involved, with both ray pipeline and ray query having a quite complex state and UB rules around it.closes#382