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
[SPIR-V] HLSL clip is treated as OpKill instead of OpDemoteToHelperInvocation in Vulkan 1.3 or -fspv-extension=SPV_EXT_demote_to_helper_invocation
#5937
Closed
danginsburg opened this issue
Oct 27, 2023
· 3 comments
Description
DXC supports generating OpDemoteToHelperInvocation for HLSL discard if using Vulkan 1.3 or -fspv-extension=SPV_EXT_demote_to_helper_invocation. This is correct. But if you use clip(-1) in your shader you will still get OpKill. Is this just a bug?
Description
DXC supports generating OpDemoteToHelperInvocation for HLSL discard if using Vulkan 1.3 or -fspv-extension=SPV_EXT_demote_to_helper_invocation. This is correct. But if you use
clip(-1)
in your shader you will still get OpKill. Is this just a bug?Steps to Reproduce
https://shader-playground.timjones.io/6c6b28f4a3a9fe0365846aff9b7aa2c7
Actual Behavior
I think clip should produce the same output as discard?
Environment
The text was updated successfully, but these errors were encountered: