| 1 |
; SPIR-V |
| 2 |
; Version: 1.3 |
| 3 |
; Generator: Khronos SPIR-V Tools Assembler; 0 |
| 4 |
; Bound: 20 |
| 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 450 |
| 12 |
OpName %main "main" |
| 13 |
OpName %Block "Block" |
| 14 |
OpMemberName %Block 0 "f" |
| 15 |
OpName %block "block" |
| 16 |
OpMemberDecorate %Block 0 Offset 0 |
| 17 |
OpDecorate %Block BufferBlock |
| 18 |
OpDecorate %block DescriptorSet 0 |
| 19 |
OpDecorate %block Binding 0 |
| 20 |
%void = OpTypeVoid |
| 21 |
%6 = OpTypeFunction %void |
| 22 |
%float = OpTypeFloat 32 |
| 23 |
%v4float = OpTypeVector %float 4 |
| 24 |
%Block = OpTypeStruct %v4float |
| 25 |
%_ptr_Uniform_Block = OpTypePointer Uniform %Block |
| 26 |
%block = OpVariable %_ptr_Uniform_Block Uniform |
| 27 |
%int = OpTypeInt 32 1 |
| 28 |
%int_0 = OpConstant %int 0 |
| 29 |
%float_0_100000001 = OpConstant %float 0.100000001 |
| 30 |
%float_0_200000003 = OpConstant %float 0.200000003 |
| 31 |
%float_0_300000012 = OpConstant %float 0.300000012 |
| 32 |
%15 = OpUndef %float |
| 33 |
%16 = OpConstantComposite %v4float %float_0_100000001 %float_0_200000003 %float_0_300000012 %15 |
| 34 |
%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float |
| 35 |
%main = OpFunction %void None %6 |
| 36 |
%18 = OpLabel |
| 37 |
%19 = OpAccessChain %_ptr_Uniform_v4float %block %int_0 |
| 38 |
OpStore %19 %16 |
| 39 |
OpReturn |
| 40 |
OpFunctionEnd |