| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 1 |
| 4 |
; Bound: 24 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Shader |
| 7 |
%1 = OpExtInstImport "GLSL.std.450" |
| 8 |
OpMemoryModel Logical GLSL450 |
| 9 |
OpEntryPoint GLCompute %main "main" |
| 10 |
OpExecutionMode %main LocalSize 1 20 1 |
| 11 |
OpSource ESSL 310 |
| 12 |
OpName %main "main" |
| 13 |
OpName %SSBO "SSBO" |
| 14 |
OpMemberName %SSBO 0 "a" |
| 15 |
OpName %_ "" |
| 16 |
OpMemberDecorate %SSBO 0 Offset 0 |
| 17 |
OpDecorate %SSBO BufferBlock |
| 18 |
OpDecorate %_ DescriptorSet 0 |
| 19 |
OpDecorate %_ Binding 0 |
| 20 |
OpDecorate %19 SpecId 10 |
| 21 |
OpDecorate %21 SpecId 12 |
| 22 |
OpDecorate %gl_WorkGroupSize BuiltIn WorkgroupSize |
| 23 |
%void = OpTypeVoid |
| 24 |
%3 = OpTypeFunction %void |
| 25 |
%float = OpTypeFloat 32 |
| 26 |
%SSBO = OpTypeStruct %float |
| 27 |
%_ptr_Uniform_SSBO = OpTypePointer Uniform %SSBO |
| 28 |
%_ = OpVariable %_ptr_Uniform_SSBO Uniform |
| 29 |
%int = OpTypeInt 32 1 |
| 30 |
%int_0 = OpConstant %int 0 |
| 31 |
%float_1 = OpConstant %float 1 |
| 32 |
%_ptr_Uniform_float = OpTypePointer Uniform %float |
| 33 |
%uint = OpTypeInt 32 0 |
| 34 |
%19 = OpSpecConstant %uint 9 |
| 35 |
%uint_20 = OpConstant %uint 20 |
| 36 |
%21 = OpSpecConstant %uint 4 |
| 37 |
%v3uint = OpTypeVector %uint 3 |
| 38 |
%gl_WorkGroupSize = OpSpecConstantComposite %v3uint %19 %uint_20 %21 |
| 39 |
%main = OpFunction %void None %3 |
| 40 |
%5 = OpLabel |
| 41 |
%14 = OpAccessChain %_ptr_Uniform_float %_ %int_0 |
| 42 |
%15 = OpLoad %float %14 |
| 43 |
%16 = OpFAdd %float %15 %float_1 |
| 44 |
%17 = OpAccessChain %_ptr_Uniform_float %_ %int_0 |
| 45 |
OpStore %17 %16 |
| 46 |
OpReturn |
| 47 |
OpFunctionEnd |