| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 8 |
| 4 |
; Bound: 35 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Shader |
| 7 |
OpCapability InputAttachment |
| 8 |
%1 = OpExtInstImport "GLSL.std.450" |
| 9 |
OpMemoryModel Logical GLSL450 |
| 10 |
OpEntryPoint Fragment %main "main" %FragColor %gl_FragCoord |
| 11 |
OpExecutionMode %main OriginUpperLeft |
| 12 |
OpSource ESSL 310 |
| 13 |
OpName %main "main" |
| 14 |
OpName %load_subpasses_IP1_ "load_subpasses(IP1;" |
| 15 |
OpName %uInput "uInput" |
| 16 |
OpName %FragColor "FragColor" |
| 17 |
OpName %uSubpass0 "uSubpass0" |
| 18 |
OpName %uSubpass1 "uSubpass1" |
| 19 |
OpName %gl_FragCoord "gl_FragCoord" |
| 20 |
OpDecorate %load_subpasses_IP1_ RelaxedPrecision |
| 21 |
OpDecorate %uInput RelaxedPrecision |
| 22 |
OpDecorate %14 RelaxedPrecision |
| 23 |
OpDecorate %19 RelaxedPrecision |
| 24 |
OpDecorate %FragColor RelaxedPrecision |
| 25 |
OpDecorate %FragColor Location 0 |
| 26 |
OpDecorate %uSubpass0 RelaxedPrecision |
| 27 |
OpDecorate %uSubpass0 DescriptorSet 0 |
| 28 |
OpDecorate %uSubpass0 Binding 0 |
| 29 |
OpDecorate %uSubpass0 InputAttachmentIndex 0 |
| 30 |
OpDecorate %25 RelaxedPrecision |
| 31 |
OpDecorate %26 RelaxedPrecision |
| 32 |
OpDecorate %uSubpass1 RelaxedPrecision |
| 33 |
OpDecorate %uSubpass1 DescriptorSet 0 |
| 34 |
OpDecorate %uSubpass1 Binding 1 |
| 35 |
OpDecorate %uSubpass1 InputAttachmentIndex 1 |
| 36 |
OpDecorate %28 RelaxedPrecision |
| 37 |
OpDecorate %29 RelaxedPrecision |
| 38 |
OpDecorate %gl_FragCoord BuiltIn FragCoord |
| 39 |
%void = OpTypeVoid |
| 40 |
%3 = OpTypeFunction %void |
| 41 |
%float = OpTypeFloat 32 |
| 42 |
%7 = OpTypeImage %float SubpassData 0 0 0 2 Unknown |
| 43 |
%_ptr_UniformConstant_7 = OpTypePointer UniformConstant %7 |
| 44 |
%v4float = OpTypeVector %float 4 |
| 45 |
%10 = OpTypeFunction %v4float %_ptr_UniformConstant_7 |
| 46 |
%int = OpTypeInt 32 1 |
| 47 |
%int_0 = OpConstant %int 0 |
| 48 |
%v2int = OpTypeVector %int 2 |
| 49 |
%18 = OpConstantComposite %v2int %int_0 %int_0 |
| 50 |
%_ptr_Output_v4float = OpTypePointer Output %v4float |
| 51 |
%FragColor = OpVariable %_ptr_Output_v4float Output |
| 52 |
%uSubpass0 = OpVariable %_ptr_UniformConstant_7 UniformConstant |
| 53 |
%uSubpass1 = OpVariable %_ptr_UniformConstant_7 UniformConstant |
| 54 |
%_ptr_Input_v4float = OpTypePointer Input %v4float |
| 55 |
%gl_FragCoord = OpVariable %_ptr_Input_v4float Input |
| 56 |
%main = OpFunction %void None %3 |
| 57 |
%5 = OpLabel |
| 58 |
%25 = OpLoad %7 %uSubpass0 |
| 59 |
%26 = OpImageRead %v4float %25 %18 |
| 60 |
%28 = OpFunctionCall %v4float %load_subpasses_IP1_ %uSubpass1 |
| 61 |
%29 = OpFAdd %v4float %26 %28 |
| 62 |
;%32 = OpLoad %v4float %gl_FragCoord |
| 63 |
;%33 = OpVectorShuffle %v4float %32 %32 0 1 0 1 |
| 64 |
;%34 = OpFAdd %v4float %29 %33 |
| 65 |
OpStore %FragColor %29 |
| 66 |
OpReturn |
| 67 |
OpFunctionEnd |
| 68 |
%load_subpasses_IP1_ = OpFunction %v4float None %10 |
| 69 |
%uInput = OpFunctionParameter %_ptr_UniformConstant_7 |
| 70 |
%13 = OpLabel |
| 71 |
%14 = OpLoad %7 %uInput |
| 72 |
%19 = OpImageRead %v4float %14 %18 |
| 73 |
OpReturnValue %19 |
| 74 |
OpFunctionEnd |