| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 6 |
| 4 |
; Bound: 31 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Shader |
| 7 |
OpExtension "SPV_GOOGLE_hlsl_functionality1" |
| 8 |
%1 = OpExtInstImport "GLSL.std.450" |
| 9 |
OpMemoryModel Logical GLSL450 |
| 10 |
OpEntryPoint GLCompute %main "main" |
| 11 |
OpExecutionMode %main LocalSize 1 1 1 |
| 12 |
OpSource HLSL 500 |
| 13 |
OpName %main "main" |
| 14 |
OpName %_main_ "@main(" |
| 15 |
OpName %Buf "Buf" |
| 16 |
OpMemberName %Buf 0 "@data" |
| 17 |
OpName %Buf_0 "Buf" |
| 18 |
OpName %Buf_count "Buf@count" |
| 19 |
OpMemberName %Buf_count 0 "@count" |
| 20 |
OpName %Buf_count_0 "Buf@count" |
| 21 |
OpDecorate %_runtimearr_v4float ArrayStride 16 |
| 22 |
OpMemberDecorate %Buf 0 Offset 0 |
| 23 |
OpDecorate %Buf BufferBlock |
| 24 |
OpDecorate %Buf_0 DescriptorSet 0 |
| 25 |
OpDecorate %Buf_0 Binding 0 |
| 26 |
OpMemberDecorate %Buf_count 0 Offset 0 |
| 27 |
OpDecorate %Buf_count BufferBlock |
| 28 |
OpDecorate %Buf_count_0 DescriptorSet 0 |
| 29 |
OpDecorate %Buf_count_0 Binding 1 |
| 30 |
OpDecorateId %Buf_0 HlslCounterBufferGOOGLE %Buf_count_0 |
| 31 |
%void = OpTypeVoid |
| 32 |
%3 = OpTypeFunction %void |
| 33 |
%float = OpTypeFloat 32 |
| 34 |
%v4float = OpTypeVector %float 4 |
| 35 |
%_runtimearr_v4float = OpTypeRuntimeArray %v4float |
| 36 |
%Buf = OpTypeStruct %_runtimearr_v4float |
| 37 |
%_ptr_Uniform_Buf = OpTypePointer Uniform %Buf |
| 38 |
%Buf_0 = OpVariable %_ptr_Uniform_Buf Uniform |
| 39 |
%int = OpTypeInt 32 1 |
| 40 |
%int_0 = OpConstant %int 0 |
| 41 |
%Buf_count = OpTypeStruct %int |
| 42 |
%_ptr_Uniform_Buf_count = OpTypePointer Uniform %Buf_count |
| 43 |
%Buf_count_0 = OpVariable %_ptr_Uniform_Buf_count Uniform |
| 44 |
%_ptr_Uniform_int = OpTypePointer Uniform %int |
| 45 |
%int_1 = OpConstant %int 1 |
| 46 |
%uint = OpTypeInt 32 0 |
| 47 |
%uint_1 = OpConstant %uint 1 |
| 48 |
%uint_0 = OpConstant %uint 0 |
| 49 |
%float_1 = OpConstant %float 1 |
| 50 |
%27 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1 |
| 51 |
%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float |
| 52 |
%main = OpFunction %void None %3 |
| 53 |
%5 = OpLabel |
| 54 |
%30 = OpFunctionCall %void %_main_ |
| 55 |
OpReturn |
| 56 |
OpFunctionEnd |
| 57 |
%_main_ = OpFunction %void None %3 |
| 58 |
%7 = OpLabel |
| 59 |
%20 = OpAccessChain %_ptr_Uniform_int %Buf_count_0 %int_0 |
| 60 |
%25 = OpAtomicIAdd %int %20 %uint_1 %uint_0 %int_1 |
| 61 |
%29 = OpAccessChain %_ptr_Uniform_v4float %Buf_0 %int_0 %25 |
| 62 |
OpStore %29 %27 |
| 63 |
OpReturn |
| 64 |
OpFunctionEnd |