| 1 |
; SPIR-V |
| 2 |
; Version: 1.5 |
| 3 |
; Generator: Khronos SPIR-V Tools Assembler; 0 |
| 4 |
; Bound: 25 |
| 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 1 1 |
| 11 |
OpSource GLSL 460 |
| 12 |
OpName %main "main" |
| 13 |
OpName %foo_ "foo(" |
| 14 |
OpName %Output "Output" |
| 15 |
OpMemberName %Output 0 "myout" |
| 16 |
OpName %_ "" |
| 17 |
OpMemberDecorate %Output 0 Offset 0 |
| 18 |
OpDecorate %Output BufferBlock |
| 19 |
OpDecorate %_ DescriptorSet 0 |
| 20 |
OpDecorate %_ Binding 0 |
| 21 |
%void = OpTypeVoid |
| 22 |
%7 = OpTypeFunction %void |
| 23 |
%int = OpTypeInt 32 1 |
| 24 |
%9 = OpTypeFunction %int |
| 25 |
%int_12 = OpConstant %int 12 |
| 26 |
%bool = OpTypeBool |
| 27 |
%true = OpConstantTrue %bool |
| 28 |
%Output = OpTypeStruct %int |
| 29 |
%_ptr_Uniform_Output = OpTypePointer Uniform %Output |
| 30 |
%_ = OpVariable %_ptr_Uniform_Output Uniform |
| 31 |
%int_0 = OpConstant %int 0 |
| 32 |
%_ptr_Uniform_int = OpTypePointer Uniform %int |
| 33 |
%main = OpFunction %void None %7 |
| 34 |
%16 = OpLabel |
| 35 |
%17 = OpFunctionCall %int %foo_ |
| 36 |
OpBranch %18 |
| 37 |
%18 = OpLabel |
| 38 |
OpLoopMerge %19 %20 None |
| 39 |
OpBranchConditional %true %21 %19 |
| 40 |
%21 = OpLabel |
| 41 |
%22 = OpAccessChain %_ptr_Uniform_int %_ %int_0 |
| 42 |
OpStore %22 %17 |
| 43 |
OpReturn |
| 44 |
%20 = OpLabel |
| 45 |
OpBranch %18 |
| 46 |
%19 = OpLabel |
| 47 |
%23 = OpAccessChain %_ptr_Uniform_int %_ %int_0 |
| 48 |
OpStore %23 %17 |
| 49 |
OpReturn |
| 50 |
OpFunctionEnd |
| 51 |
%foo_ = OpFunction %int None %9 |
| 52 |
%24 = OpLabel |
| 53 |
OpReturnValue %int_12 |
| 54 |
OpFunctionEnd |