We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b2d70c commit 18e3243Copy full SHA for 18e3243
shared/src/lib.rs
@@ -444,13 +444,5 @@ impl Derivative for Vec3 {
444
}
445
446
pub fn discard() {
447
- #[cfg(target_arch = "spirv")]
448
- unsafe {
449
- use core::arch::asm;
450
- asm!(
451
- "OpExtension \"SPV_EXT_demote_to_helper_invocation\"",
452
- "OpCapability DemoteToHelperInvocationEXT",
453
- "OpDemoteToHelperInvocationEXT"
454
- );
455
- }
+ unsafe { spirv_std::arch::demote_to_helper_invocation() }
456
0 commit comments