| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 6 |
| 4 |
; Bound: 26 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Shader |
| 7 |
%1 = OpExtInstImport "GLSL.std.450" |
| 8 |
OpMemoryModel Logical GLSL450 |
| 9 |
OpEntryPoint Fragment %main "main" %FragColor %gl_FragCoord |
| 10 |
OpExecutionMode %main OriginUpperLeft |
| 11 |
OpSource GLSL 450 |
| 12 |
OpName %main "main" |
| 13 |
OpName %FragColor "FragColor" |
| 14 |
OpName %uTexture "uTexture" |
| 15 |
OpName %gl_FragCoord "gl_FragCoord" |
| 16 |
OpDecorate %FragColor Location 0 |
| 17 |
OpDecorate %uTexture DescriptorSet 0 |
| 18 |
OpDecorate %uTexture Binding 0 |
| 19 |
OpDecorate %gl_FragCoord BuiltIn FragCoord |
| 20 |
%void = OpTypeVoid |
| 21 |
%3 = OpTypeFunction %void |
| 22 |
%float = OpTypeFloat 32 |
| 23 |
%v4float = OpTypeVector %float 4 |
| 24 |
%_ptr_Output_v4float = OpTypePointer Output %v4float |
| 25 |
%FragColor = OpVariable %_ptr_Output_v4float Output |
| 26 |
%10 = OpTypeImage %float 2D 0 0 0 1 Unknown |
| 27 |
%11 = OpTypeSampledImage %10 |
| 28 |
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11 |
| 29 |
%uTexture = OpVariable %_ptr_UniformConstant_11 UniformConstant |
| 30 |
%_ptr_Input_v4float = OpTypePointer Input %v4float |
| 31 |
%gl_FragCoord = OpVariable %_ptr_Input_v4float Input |
| 32 |
%v2float = OpTypeVector %float 2 |
| 33 |
%int = OpTypeInt 32 1 |
| 34 |
%v2int = OpTypeVector %int 2 |
| 35 |
%int_0 = OpConstant %int 0 |
| 36 |
%main = OpFunction %void None %3 |
| 37 |
%5 = OpLabel |
| 38 |
%14 = OpLoad %11 %uTexture |
| 39 |
%18 = OpLoad %v4float %gl_FragCoord |
| 40 |
%19 = OpVectorShuffle %v2float %18 %18 0 1 |
| 41 |
%22 = OpConvertFToS %v2int %19 |
| 42 |
%24 = OpImage %10 %14 |
| 43 |
%25 = OpImageFetch %v4float %24 %22 |
| 44 |
OpStore %FragColor %25 |
| 45 |
OpReturn |
| 46 |
OpFunctionEnd |