| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 6 |
| 4 |
; Bound: 32 |
| 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 %add_value_f1_f1_ "add_value(f1;f1;" |
| 14 |
OpName %v "v" |
| 15 |
OpName %w "w" |
| 16 |
OpName %FragColor "FragColor" |
| 17 |
OpName %Registers "Registers" |
| 18 |
OpMemberName %Registers 0 "foo" |
| 19 |
OpName %registers "registers" |
| 20 |
OpDecorate %FragColor Location 0 |
| 21 |
OpMemberDecorate %Registers 0 Offset 0 |
| 22 |
OpDecorate %Registers Block |
| 23 |
%void = OpTypeVoid |
| 24 |
%3 = OpTypeFunction %void |
| 25 |
%float = OpTypeFloat 32 |
| 26 |
%_ptr_Function_float = OpTypePointer Function %float |
| 27 |
%8 = OpTypeFunction %float %float %float |
| 28 |
%_ptr_Output_float = OpTypePointer Output %float |
| 29 |
%FragColor = OpVariable %_ptr_Output_float Output |
| 30 |
%float_10 = OpConstant %float 10 |
| 31 |
%Registers = OpTypeStruct %float |
| 32 |
%_ptr_PushConstant_Registers = OpTypePointer PushConstant %Registers |
| 33 |
%registers = OpVariable %_ptr_PushConstant_Registers PushConstant |
| 34 |
%int = OpTypeInt 32 1 |
| 35 |
%int_0 = OpConstant %int 0 |
| 36 |
%_ptr_PushConstant_float = OpTypePointer PushConstant %float |
| 37 |
%main = OpFunction %void None %3 |
| 38 |
%5 = OpLabel |
| 39 |
%29 = OpAccessChain %_ptr_PushConstant_float %registers %int_0 |
| 40 |
%30 = OpLoad %float %29 |
| 41 |
%31 = OpFunctionCall %float %add_value_f1_f1_ %float_10 %30 |
| 42 |
OpStore %FragColor %31 |
| 43 |
OpReturn |
| 44 |
OpFunctionEnd |
| 45 |
%add_value_f1_f1_ = OpFunction %float None %8 |
| 46 |
%v = OpFunctionParameter %float |
| 47 |
%w = OpFunctionParameter %float |
| 48 |
%12 = OpLabel |
| 49 |
%15 = OpFAdd %float %v %w |
| 50 |
OpReturnValue %15 |
| 51 |
OpFunctionEnd |