| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 7 |
| 4 |
; Bound: 29 |
| 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 |
OpSourceExtension "GL_EXT_scalar_block_layout" |
| 13 |
OpName %main "main" |
| 14 |
OpName %SSBOScalar "SSBOScalar" |
| 15 |
OpMemberName %SSBOScalar 0 "a" |
| 16 |
OpMemberName %SSBOScalar 1 "b" |
| 17 |
OpMemberName %SSBOScalar 2 "c" |
| 18 |
OpName %_ "" |
| 19 |
OpDecorate %_arr_v2float_uint_16 ArrayStride 16 |
| 20 |
OpDecorate %_arr_v2float_uint_16_0 ArrayStride 16 |
| 21 |
OpDecorate %_arr_float_uint_16 ArrayStride 16 |
| 22 |
OpMemberDecorate %SSBOScalar 0 Offset 0 |
| 23 |
OpMemberDecorate %SSBOScalar 1 Offset 256 |
| 24 |
OpMemberDecorate %SSBOScalar 2 Offset 512 |
| 25 |
OpDecorate %SSBOScalar BufferBlock |
| 26 |
OpDecorate %_ DescriptorSet 0 |
| 27 |
OpDecorate %_ Binding 0 |
| 28 |
%void = OpTypeVoid |
| 29 |
%3 = OpTypeFunction %void |
| 30 |
%float = OpTypeFloat 32 |
| 31 |
%v2float = OpTypeVector %float 2 |
| 32 |
%uint = OpTypeInt 32 0 |
| 33 |
%uint_16 = OpConstant %uint 16 |
| 34 |
%_arr_v2float_uint_16 = OpTypeArray %v2float %uint_16 |
| 35 |
%_arr_v2float_uint_16_0 = OpTypeArray %v2float %uint_16 |
| 36 |
%_arr_float_uint_16 = OpTypeArray %float %uint_16 |
| 37 |
%SSBOScalar = OpTypeStruct %_arr_v2float_uint_16 %_arr_v2float_uint_16_0 %_arr_float_uint_16 |
| 38 |
%_ptr_Uniform_SSBOScalar = OpTypePointer Uniform %SSBOScalar |
| 39 |
%_ = OpVariable %_ptr_Uniform_SSBOScalar Uniform |
| 40 |
%int = OpTypeInt 32 1 |
| 41 |
%int_0 = OpConstant %int 0 |
| 42 |
%int_10 = OpConstant %int 10 |
| 43 |
%int_1 = OpConstant %int 1 |
| 44 |
%_ptr_Uniform_v2float = OpTypePointer Uniform %v2float |
| 45 |
%int_2 = OpConstant %int 2 |
| 46 |
%float_10 = OpConstant %float 10.0 |
| 47 |
%float_11 = OpConstant %float 11.0 |
| 48 |
%float_const = OpConstantComposite %v2float %float_10 %float_11 |
| 49 |
%_ptr_Uniform_float = OpTypePointer Uniform %float |
| 50 |
%main = OpFunction %void None %3 |
| 51 |
%5 = OpLabel |
| 52 |
%21 = OpAccessChain %_ptr_Uniform_v2float %_ %int_1 %int_10 |
| 53 |
%22 = OpLoad %v2float %21 |
| 54 |
%25 = OpAccessChain %_ptr_Uniform_float %_ %int_2 %int_10 |
| 55 |
%26 = OpLoad %float %25 |
| 56 |
OpStore %21 %float_const |
| 57 |
%27 = OpVectorTimesScalar %v2float %22 %26 |
| 58 |
%28 = OpAccessChain %_ptr_Uniform_v2float %_ %int_0 %int_10 |
| 59 |
OpStore %28 %27 |
| 60 |
OpReturn |
| 61 |
OpFunctionEnd |