| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 10 |
| 4 |
; Bound: 33 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Shader |
| 7 |
%1 = OpExtInstImport "GLSL.std.450" |
| 8 |
OpMemoryModel Logical GLSL450 |
| 9 |
OpEntryPoint Fragment %main "main" %FragColor |
| 10 |
OpExecutionMode %main OriginUpperLeft |
| 11 |
OpSource GLSL 450 |
| 12 |
OpName %main "main" |
| 13 |
OpName %FragColor "FragColor" |
| 14 |
OpName %Foo "Foo" |
| 15 |
OpMemberName %Foo 0 "m" |
| 16 |
OpMemberName %Foo 1 "v" |
| 17 |
OpName %FooUBO "FooUBO" |
| 18 |
OpMemberName %FooUBO 0 "foo" |
| 19 |
OpName %_ "" |
| 20 |
OpName %Bar "Bar" |
| 21 |
OpMemberName %Bar 0 "m" |
| 22 |
OpMemberName %Bar 1 "v" |
| 23 |
OpName %BarUBO "BarUBO" |
| 24 |
OpMemberName %BarUBO 0 "bar" |
| 25 |
OpName %__0 "" |
| 26 |
OpDecorate %FragColor Location 0 |
| 27 |
OpDecorate %_arr_mat3v3float_uint_2 ArrayStride 48 |
| 28 |
OpMemberDecorate %Foo 0 ColMajor |
| 29 |
OpMemberDecorate %Foo 0 Offset 0 |
| 30 |
OpMemberDecorate %Foo 0 MatrixStride 16 |
| 31 |
OpMemberDecorate %Foo 1 Offset 92 |
| 32 |
OpMemberDecorate %FooUBO 0 Offset 0 |
| 33 |
OpDecorate %FooUBO Block |
| 34 |
OpDecorate %_ DescriptorSet 0 |
| 35 |
OpDecorate %_ Binding 0 |
| 36 |
OpMemberDecorate %Bar 0 ColMajor |
| 37 |
OpMemberDecorate %Bar 0 Offset 0 |
| 38 |
OpMemberDecorate %Bar 0 MatrixStride 16 |
| 39 |
OpMemberDecorate %Bar 1 Offset 44 |
| 40 |
OpMemberDecorate %BarUBO 0 Offset 0 |
| 41 |
OpDecorate %BarUBO Block |
| 42 |
OpDecorate %__0 DescriptorSet 0 |
| 43 |
OpDecorate %__0 Binding 1 |
| 44 |
%void = OpTypeVoid |
| 45 |
%3 = OpTypeFunction %void |
| 46 |
%float = OpTypeFloat 32 |
| 47 |
%v4float = OpTypeVector %float 4 |
| 48 |
%_ptr_Output_v4float = OpTypePointer Output %v4float |
| 49 |
%FragColor = OpVariable %_ptr_Output_v4float Output |
| 50 |
%v3float = OpTypeVector %float 3 |
| 51 |
%mat3v3float = OpTypeMatrix %v3float 3 |
| 52 |
%uint = OpTypeInt 32 0 |
| 53 |
%uint_2 = OpConstant %uint 2 |
| 54 |
%_arr_mat3v3float_uint_2 = OpTypeArray %mat3v3float %uint_2 |
| 55 |
%Foo = OpTypeStruct %_arr_mat3v3float_uint_2 %float |
| 56 |
%FooUBO = OpTypeStruct %Foo |
| 57 |
%_ptr_Uniform_FooUBO = OpTypePointer Uniform %FooUBO |
| 58 |
%_ = OpVariable %_ptr_Uniform_FooUBO Uniform |
| 59 |
%int = OpTypeInt 32 1 |
| 60 |
%int_0 = OpConstant %int 0 |
| 61 |
%int_1 = OpConstant %int 1 |
| 62 |
%_ptr_Uniform_float = OpTypePointer Uniform %float |
| 63 |
%Bar = OpTypeStruct %mat3v3float %float |
| 64 |
%BarUBO = OpTypeStruct %Bar |
| 65 |
%_ptr_Uniform_BarUBO = OpTypePointer Uniform %BarUBO |
| 66 |
%__0 = OpVariable %_ptr_Uniform_BarUBO Uniform |
| 67 |
%main = OpFunction %void None %3 |
| 68 |
%5 = OpLabel |
| 69 |
%23 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_1 |
| 70 |
%24 = OpLoad %float %23 |
| 71 |
%29 = OpAccessChain %_ptr_Uniform_float %__0 %int_0 %int_1 |
| 72 |
%30 = OpLoad %float %29 |
| 73 |
%31 = OpFAdd %float %24 %30 |
| 74 |
%32 = OpCompositeConstruct %v4float %31 %31 %31 %31 |
| 75 |
OpStore %FragColor %32 |
| 76 |
OpReturn |
| 77 |
OpFunctionEnd |