| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 7 |
| 4 |
; Bound: 27 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Shader |
| 7 |
%1 = OpExtInstImport "GLSL.std.450" |
| 8 |
OpMemoryModel Logical GLSL450 |
| 9 |
OpEntryPoint Fragment %main "main" %FragColor %vColor |
| 10 |
OpExecutionMode %main OriginUpperLeft |
| 11 |
OpSource GLSL 450 |
| 12 |
OpName %main "main" |
| 13 |
OpName %FragColor "FragColor" |
| 14 |
OpName %vColor "vColor" |
| 15 |
OpName %omap_r "omap_r" |
| 16 |
OpName %omap_g "omap_g" |
| 17 |
OpName %omap_b "omap_b" |
| 18 |
OpName %omap_a "omap_a" |
| 19 |
OpDecorate %FragColor Location 0 |
| 20 |
OpDecorate %vColor Location 0 |
| 21 |
OpDecorate %omap_r SpecId 0 |
| 22 |
OpDecorate %omap_g SpecId 1 |
| 23 |
OpDecorate %omap_b SpecId 2 |
| 24 |
OpDecorate %omap_a SpecId 3 |
| 25 |
%void = OpTypeVoid |
| 26 |
%3 = OpTypeFunction %void |
| 27 |
%float = OpTypeFloat 32 |
| 28 |
%v4float = OpTypeVector %float 4 |
| 29 |
%_ptr_Output_v4float = OpTypePointer Output %v4float |
| 30 |
%FragColor = OpVariable %_ptr_Output_v4float Output |
| 31 |
%_ptr_Input_v4float = OpTypePointer Input %v4float |
| 32 |
%vColor = OpVariable %_ptr_Input_v4float Input |
| 33 |
%int = OpTypeInt 32 1 |
| 34 |
%omap_r = OpSpecConstant %int 0 |
| 35 |
%_ptr_Input_float = OpTypePointer Input %float |
| 36 |
%omap_g = OpSpecConstant %int 1 |
| 37 |
%omap_b = OpSpecConstant %int 2 |
| 38 |
%omap_a = OpSpecConstant %int 3 |
| 39 |
%main = OpFunction %void None %3 |
| 40 |
%5 = OpLabel |
| 41 |
%loaded = OpLoad %v4float %vColor |
| 42 |
%r = OpVectorExtractDynamic %float %loaded %omap_r |
| 43 |
%g = OpVectorExtractDynamic %float %loaded %omap_g |
| 44 |
%b = OpVectorExtractDynamic %float %loaded %omap_b |
| 45 |
%a = OpVectorExtractDynamic %float %loaded %omap_a |
| 46 |
%rgba = OpCompositeConstruct %v4float %r %g %b %a |
| 47 |
OpStore %FragColor %rgba |
| 48 |
OpReturn |
| 49 |
OpFunctionEnd |