We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
arch::ignore_intersection
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
Issue automatically imported from old repo: EmbarkStudios/rust-gpu#1099 Old labels: t: bug Originally creatd by Steelbirdy on 2023-11-13T21:07:54Z
Shader crate successfully compiles
#[spirv(any_hit)] pub fn my_any_hit() { let p = Vec3A::ZERO; if p.length_squared() < 1e-3 { unsafe { spirv_std::arch::ignore_intersection(); } } }
Replacing this with the below snippet causes it to compile.
#[spirv(any_hit)] pub fn my_any_hit() { let p = Vec3A::ZERO; if p.length_squared() < 1e-3 { my_ignore_intersection(); } } #[inline(never)] fn my_ignore_intersection() { unsafe { spirv_std::arch::ignore_intersection(); } }
error: Selection must be structured OpBranchConditional %1274 %1275 %1276 | = note: module `C:\Users\Pat\CLionProjects\rayven_gpu2\target\spirv-builder\spirv-unknown-vulkan1.2\release\deps\shader.spv` warning: an unknown error occurred | = note: spirv-opt failed, leaving as unoptimized = note: module `C:\Users\Pat\CLionProjects\rayven_gpu2\target\spirv-builder\spirv-unknown-vulkan1.2\release\deps\shader.spv` error: error:0:0 - Selection must be structured OpBranchConditional %1274 %1275 %1276 | = note: spirv-val failed = note: module `C:\Users\Pat\CLionProjects\rayven_gpu2\target\spirv-builder\spirv-unknown-vulkan1.2\release\deps\shader.spv`
The text was updated successfully, but these errors were encountered:
Remove unnecessary Default constraint on DeviceBox::as_host_value. (
Default
DeviceBox::as_host_value
3880313
Rust-GPU#67)
No branches or pull requests
Issue automatically imported from old repo: EmbarkStudios/rust-gpu#1099
Old labels: t: bug
Originally creatd by Steelbirdy on 2023-11-13T21:07:54Z
Expected Behaviour
Shader crate successfully compiles
Example & Steps To Reproduce
Replacing this with the below snippet causes it to compile.
System Info
Backtrace
Backtrace
The text was updated successfully, but these errors were encountered: