[clang] [llvm] [HLSL] Adding HLSL `clip` function. (PR #114588)
Finn Plummer via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 7 12:23:51 PST 2024
================
@@ -456,6 +456,7 @@ defm VulkanMemoryModelDeviceScopeKHR : CapabilityOperand<5346, 0, 0, [], []>;
defm ImageFootprintNV : CapabilityOperand<5282, 0, 0, [], []>;
defm FragmentBarycentricNV : CapabilityOperand<5284, 0, 0, [], []>;
defm ComputeDerivativeGroupQuadsNV : CapabilityOperand<5288, 0, 0, [], []>;
+defm DemoteToHelperInvocation : CapabilityOperand<5379, 0, 0, [SPV_EXT_demote_to_helper_invocation], []>;
----------------
inbelic wrote:
```suggestion
defm DemoteToHelperInvocation : CapabilityOperand<5379, 0x00010600, 0, [SPV_EXT_demote_to_helper_invocation], []>;
```
We could specify the minimum version. Following format from here but I think you can remove some leading zeros: https://registry.khronos.org/SPIR-V/specs/unified1/SPIRV.html#_physical_layout_of_a_spir_v_module_and_instruction
https://github.com/llvm/llvm-project/pull/114588
More information about the cfe-commits
mailing list