You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[SPIR-V] HLSL to SPIR-V with subgroup extensions #2692
In GLSL, there are many subgroup instrinsics available via Vulkan extensions for GLSL. To some extent, this is true for HLSL, but many intrinsics are not available, as DX12/DXIL does not support them. For example, there is no way to write something in HLSL so that it compiles to the SPIR-V instruction GroupNonUniformShuffleXor.
Is there a way (possibly experimental?) to write HLSL which compiles to subgroup related SPIR-V extensions not supported by DX12?
Activity
jaebaek commentedon Feb 13, 2020
bzm3r (@bzm3r) Thank you for your question. We have something like
[[vk::...]]but I am not sure. Let me check it.sudonatalie commentedon Jun 23, 2022
Arbitrary inline SPIR-V instructions are now supported through vk::ext_* attributes.
For example, the following HLSL shader:
generates the desired
GroupNonUniformShuffleXorSPIR-V instruction when compiled withdxc -T ps_6_0 -E main -spirv -fspv-target-env=vulkan1.3: