| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 7 |
| 4 |
; Bound: 24 |
| 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 %80 "Foo" |
| 15 |
OpMemberName %80 0 "a" |
| 16 |
OpName %79 "Bar" |
| 17 |
OpMemberName %79 0 "foo" |
| 18 |
OpMemberName %79 1 "foo2" |
| 19 |
OpName %UBO "UBO" |
| 20 |
OpMemberName %UBO 0 "bar" |
| 21 |
OpName %_ "" |
| 22 |
OpDecorate %FragColor Location 0 |
| 23 |
OpMemberDecorate %80 0 Offset 0 |
| 24 |
OpMemberDecorate %79 0 Offset 0 |
| 25 |
OpMemberDecorate %79 1 Offset 16 |
| 26 |
OpMemberDecorate %UBO 0 Offset 0 |
| 27 |
OpDecorate %UBO Block |
| 28 |
OpDecorate %_ DescriptorSet 0 |
| 29 |
OpDecorate %_ Binding 0 |
| 30 |
%void = OpTypeVoid |
| 31 |
%3 = OpTypeFunction %void |
| 32 |
%float = OpTypeFloat 32 |
| 33 |
%v4float = OpTypeVector %float 4 |
| 34 |
%_ptr_Output_v4float = OpTypePointer Output %v4float |
| 35 |
%FragColor = OpVariable %_ptr_Output_v4float Output |
| 36 |
%80 = OpTypeStruct %v4float |
| 37 |
%79 = OpTypeStruct %80 %80 |
| 38 |
%UBO = OpTypeStruct %79 |
| 39 |
%_ptr_Uniform_UBO = OpTypePointer Uniform %UBO |
| 40 |
%_ = OpVariable %_ptr_Uniform_UBO Uniform |
| 41 |
%int = OpTypeInt 32 1 |
| 42 |
%int_0 = OpConstant %int 0 |
| 43 |
%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float |
| 44 |
%int_1 = OpConstant %int 1 |
| 45 |
%main = OpFunction %void None %3 |
| 46 |
%5 = OpLabel |
| 47 |
%18 = OpAccessChain %_ptr_Uniform_v4float %_ %int_0 %int_0 %int_0 |
| 48 |
%19 = OpLoad %v4float %18 |
| 49 |
%21 = OpAccessChain %_ptr_Uniform_v4float %_ %int_0 %int_1 %int_0 |
| 50 |
%22 = OpLoad %v4float %21 |
| 51 |
%23 = OpFAdd %v4float %19 %22 |
| 52 |
OpStore %FragColor %23 |
| 53 |
OpReturn |
| 54 |
OpFunctionEnd |