| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Wine VKD3D Shader Compiler; 0 |
| 4 |
; Bound: 59 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Shader |
| 7 |
OpCapability UniformBufferArrayDynamicIndexing |
| 8 |
OpCapability SampledBuffer |
| 9 |
OpCapability ImageBuffer |
| 10 |
OpMemoryModel Logical GLSL450 |
| 11 |
OpEntryPoint GLCompute %main "main" %vThreadIDInGroup |
| 12 |
OpExecutionMode %main LocalSize 4 1 1 |
| 13 |
OpName %main "main" |
| 14 |
OpName %cb5_struct "cb5_struct" |
| 15 |
OpName %cb0_5 "cb0_5" |
| 16 |
OpName %u0 "u0" |
| 17 |
OpName %vThreadIDInGroup "vThreadIDInGroup" |
| 18 |
OpName %r0 "r0" |
| 19 |
OpDecorate %_arr_v4float_uint_5 ArrayStride 16 |
| 20 |
OpDecorate %cb5_struct Block |
| 21 |
OpMemberDecorate %cb5_struct 0 Offset 0 |
| 22 |
OpDecorate %cb0_5 DescriptorSet 0 |
| 23 |
OpDecorate %cb0_5 Binding 1 |
| 24 |
OpDecorate %u0 DescriptorSet 0 |
| 25 |
OpDecorate %u0 Binding 0 |
| 26 |
OpDecorate %u0 NonReadable |
| 27 |
OpDecorate %vThreadIDInGroup BuiltIn LocalInvocationId |
| 28 |
%void = OpTypeVoid |
| 29 |
%2 = OpTypeFunction %void |
| 30 |
%float = OpTypeFloat 32 |
| 31 |
%v4float = OpTypeVector %float 4 |
| 32 |
%uint = OpTypeInt 32 0 |
| 33 |
%uint_5 = OpConstant %uint 5 |
| 34 |
%_arr_v4float_uint_5 = OpTypeArray %v4float %uint_5 |
| 35 |
%cb5_struct = OpTypeStruct %_arr_v4float_uint_5 |
| 36 |
%_ptr_Uniform_cb5_struct = OpTypePointer Uniform %cb5_struct |
| 37 |
%cb0_5 = OpVariable %_ptr_Uniform_cb5_struct Uniform |
| 38 |
%13 = OpTypeImage %uint Buffer 0 0 0 2 R32ui |
| 39 |
%_ptr_UniformConstant_13 = OpTypePointer UniformConstant %13 |
| 40 |
%u0 = OpVariable %_ptr_UniformConstant_13 UniformConstant |
| 41 |
%int = OpTypeInt 32 1 |
| 42 |
%v3int = OpTypeVector %int 3 |
| 43 |
%_ptr_Input_v3int = OpTypePointer Input %v3int |
| 44 |
%vThreadIDInGroup = OpVariable %_ptr_Input_v3int Input |
| 45 |
%_ptr_Function_v4float = OpTypePointer Function %v4float |
| 46 |
%_ptr_Input_int = OpTypePointer Input %int |
| 47 |
%uint_0 = OpConstant %uint 0 |
| 48 |
%int_4 = OpConstant %int 4 |
| 49 |
%_ptr_Function_float = OpTypePointer Function %float |
| 50 |
%uint_1 = OpConstant %uint 1 |
| 51 |
%uint_2 = OpConstant %uint 2 |
| 52 |
%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float |
| 53 |
%v4uint = OpTypeVector %uint 4 |
| 54 |
%uint_3 = OpConstant %uint 3 |
| 55 |
%main = OpFunction %void None %2 |
| 56 |
%4 = OpLabel |
| 57 |
%r0 = OpVariable %_ptr_Function_v4float Function |
| 58 |
%24 = OpInBoundsAccessChain %_ptr_Input_int %vThreadIDInGroup %uint_0 |
| 59 |
%25 = OpLoad %int %24 |
| 60 |
%27 = OpShiftLeftLogical %int %25 %int_4 |
| 61 |
%28 = OpBitcast %float %27 |
| 62 |
%30 = OpInBoundsAccessChain %_ptr_Function_float %r0 %uint_0 |
| 63 |
OpStore %30 %28 |
| 64 |
%31 = OpInBoundsAccessChain %_ptr_Input_int %vThreadIDInGroup %uint_0 |
| 65 |
%32 = OpLoad %int %31 |
| 66 |
%33 = OpBitcast %float %32 |
| 67 |
%35 = OpInBoundsAccessChain %_ptr_Function_float %r0 %uint_1 |
| 68 |
OpStore %35 %33 |
| 69 |
%36 = OpLoad %13 %u0 |
| 70 |
%37 = OpInBoundsAccessChain %_ptr_Function_float %r0 %uint_0 |
| 71 |
%38 = OpLoad %float %37 |
| 72 |
%39 = OpBitcast %uint %38 |
| 73 |
%41 = OpShiftRightLogical %uint %39 %uint_2 |
| 74 |
%42 = OpInBoundsAccessChain %_ptr_Function_float %r0 %uint_1 |
| 75 |
%43 = OpLoad %float %42 |
| 76 |
%44 = OpBitcast %int %43 |
| 77 |
%45 = OpIAdd %uint %44 %uint_1 |
| 78 |
%47 = OpAccessChain %_ptr_Uniform_v4float %cb0_5 %uint_0 %45 |
| 79 |
%48 = OpLoad %v4float %47 |
| 80 |
%50 = OpBitcast %v4uint %48 |
| 81 |
%51 = OpVectorShuffle %v4uint %50 %50 0 0 0 0 |
| 82 |
OpImageWrite %36 %41 %51 |
| 83 |
%52 = OpVectorShuffle %v4uint %50 %50 1 1 1 1 |
| 84 |
%53 = OpIAdd %uint %41 %uint_1 |
| 85 |
OpImageWrite %36 %53 %52 |
| 86 |
%54 = OpVectorShuffle %v4uint %50 %50 2 2 2 2 |
| 87 |
%55 = OpIAdd %uint %41 %uint_2 |
| 88 |
OpImageWrite %36 %55 %54 |
| 89 |
%56 = OpVectorShuffle %v4uint %50 %50 3 3 3 3 |
| 90 |
%58 = OpIAdd %uint %41 %uint_3 |
| 91 |
OpImageWrite %36 %58 %56 |
| 92 |
OpReturn |
| 93 |
OpFunctionEnd |