| 1 |
; SPIR-V |
| 2 |
; Version: 1.3 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 8 |
| 4 |
; Bound: 78 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Shader |
| 7 |
OpCapability GroupNonUniform |
| 8 |
OpCapability GroupNonUniformArithmetic |
| 9 |
OpCapability GroupNonUniformClustered |
| 10 |
%1 = OpExtInstImport "GLSL.std.450" |
| 11 |
OpMemoryModel Logical GLSL450 |
| 12 |
OpEntryPoint Fragment %main "main" %index %FragColor |
| 13 |
OpExecutionMode %main OriginUpperLeft |
| 14 |
OpSource GLSL 450 |
| 15 |
OpSourceExtension "GL_KHR_shader_subgroup_arithmetic" |
| 16 |
OpSourceExtension "GL_KHR_shader_subgroup_basic" |
| 17 |
OpSourceExtension "GL_KHR_shader_subgroup_clustered" |
| 18 |
OpName %main "main" |
| 19 |
OpName %index "index" |
| 20 |
OpName %FragColor "FragColor" |
| 21 |
OpDecorate %index Flat |
| 22 |
OpDecorate %index Location 0 |
| 23 |
OpDecorate %FragColor Location 0 |
| 24 |
%void = OpTypeVoid |
| 25 |
%3 = OpTypeFunction %void |
| 26 |
%uint = OpTypeInt 32 0 |
| 27 |
%_ptr_Function_uint = OpTypePointer Function %uint |
| 28 |
%uint_0 = OpConstant %uint 0 |
| 29 |
%int = OpTypeInt 32 1 |
| 30 |
%_ptr_Input_int = OpTypePointer Input %int |
| 31 |
%index = OpVariable %_ptr_Input_int Input |
| 32 |
%uint_3 = OpConstant %uint 3 |
| 33 |
%uint_4 = OpConstant %uint 4 |
| 34 |
%_ptr_Output_uint = OpTypePointer Output %uint |
| 35 |
%FragColor = OpVariable %_ptr_Output_uint Output |
| 36 |
%main = OpFunction %void None %3 |
| 37 |
%5 = OpLabel |
| 38 |
%i = OpLoad %int %index |
| 39 |
%u = OpBitcast %uint %i |
| 40 |
%res0 = OpGroupNonUniformSMin %uint %uint_3 Reduce %i |
| 41 |
%res1 = OpGroupNonUniformSMax %uint %uint_3 Reduce %u |
| 42 |
%res2 = OpGroupNonUniformUMin %uint %uint_3 Reduce %i |
| 43 |
%res3 = OpGroupNonUniformUMax %uint %uint_3 Reduce %u |
| 44 |
%res4 = OpGroupNonUniformSMax %uint %uint_3 InclusiveScan %i |
| 45 |
%res5 = OpGroupNonUniformSMin %uint %uint_3 InclusiveScan %u |
| 46 |
%res6 = OpGroupNonUniformUMax %uint %uint_3 ExclusiveScan %i |
| 47 |
%res7 = OpGroupNonUniformUMin %uint %uint_3 ExclusiveScan %u |
| 48 |
%res8 = OpGroupNonUniformSMin %uint %uint_3 ClusteredReduce %i %uint_4 |
| 49 |
%res9 = OpGroupNonUniformSMax %uint %uint_3 ClusteredReduce %u %uint_4 |
| 50 |
%res10 = OpGroupNonUniformUMin %uint %uint_3 ClusteredReduce %i %uint_4 |
| 51 |
%res11 = OpGroupNonUniformUMax %uint %uint_3 ClusteredReduce %u %uint_4 |
| 52 |
OpStore %FragColor %res0 |
| 53 |
OpStore %FragColor %res1 |
| 54 |
OpStore %FragColor %res2 |
| 55 |
OpStore %FragColor %res3 |
| 56 |
OpStore %FragColor %res4 |
| 57 |
OpStore %FragColor %res5 |
| 58 |
OpStore %FragColor %res6 |
| 59 |
OpStore %FragColor %res7 |
| 60 |
OpStore %FragColor %res8 |
| 61 |
OpStore %FragColor %res9 |
| 62 |
OpStore %FragColor %res10 |
| 63 |
OpStore %FragColor %res11 |
| 64 |
OpReturn |
| 65 |
OpFunctionEnd |