| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 7 |
| 4 |
; Bound: 29 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Shader |
| 7 |
%1 = OpExtInstImport "GLSL.std.450" |
| 8 |
OpMemoryModel Logical GLSL450 |
| 9 |
OpEntryPoint Fragment %main "main" %FragColor %vFloat |
| 10 |
OpExecutionMode %main OriginUpperLeft |
| 11 |
OpSource GLSL 450 |
| 12 |
OpName %main "main" |
| 13 |
OpName %FragColor "FragColor" |
| 14 |
OpName %vFloat "vFloat" |
| 15 |
OpName %undef "undef" |
| 16 |
OpDecorate %FragColor Location 0 |
| 17 |
OpDecorate %vFloat Location 0 |
| 18 |
%void = OpTypeVoid |
| 19 |
%3 = OpTypeFunction %void |
| 20 |
%float = OpTypeFloat 32 |
| 21 |
%v4float = OpTypeVector %float 4 |
| 22 |
%_ptr_Output_v4float = OpTypePointer Output %v4float |
| 23 |
%FragColor = OpVariable %_ptr_Output_v4float Output |
| 24 |
%_ptr_Input_v4float = OpTypePointer Input %v4float |
| 25 |
%vFloat = OpVariable %_ptr_Input_v4float Input |
| 26 |
%v2float = OpTypeVector %float 2 |
| 27 |
%_ptr_Private_v4float = OpTypePointer Private %v4float |
| 28 |
%undef = OpUndef %v4float |
| 29 |
%uint = OpTypeInt 32 0 |
| 30 |
%uint_2 = OpConstant %uint 2 |
| 31 |
%_ptr_Private_float = OpTypePointer Private %float |
| 32 |
%uint_3 = OpConstant %uint 3 |
| 33 |
%_ptr_Input_float = OpTypePointer Input %float |
| 34 |
%main = OpFunction %void None %3 |
| 35 |
%5 = OpLabel |
| 36 |
%13 = OpLoad %v4float %vFloat |
| 37 |
%26 = OpVectorShuffle %v4float %13 %undef 4 1 0xffffffff 3 |
| 38 |
%27 = OpVectorShuffle %v4float %13 %13 2 1 0xffffffff 3 |
| 39 |
%28 = OpFAdd %v4float %26 %27 |
| 40 |
OpStore %FragColor %28 |
| 41 |
OpReturn |
| 42 |
OpFunctionEnd |