| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 7 |
| 4 |
; Bound: 20 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Shader |
| 7 |
%1 = OpExtInstImport "GLSL.std.450" |
| 8 |
OpMemoryModel Logical GLSL450 |
| 9 |
OpEntryPoint Fragment %main "main" %_GLF_color |
| 10 |
OpExecutionMode %main OriginUpperLeft |
| 11 |
OpSource ESSL 310 |
| 12 |
OpName %main "main" |
| 13 |
OpName %_GLF_color "_GLF_color" |
| 14 |
OpDecorate %_GLF_color Location 0 |
| 15 |
OpDecorate %18 RelaxedPrecision |
| 16 |
%void = OpTypeVoid |
| 17 |
%3 = OpTypeFunction %void |
| 18 |
%float = OpTypeFloat 32 |
| 19 |
%v4float = OpTypeVector %float 4 |
| 20 |
%_ptr_Output_v4float = OpTypePointer Output %v4float |
| 21 |
%_GLF_color = OpVariable %_ptr_Output_v4float Output |
| 22 |
%float_1 = OpConstant %float 1 |
| 23 |
%11 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1 |
| 24 |
%uint = OpTypeInt 32 0 |
| 25 |
%v4uint = OpTypeVector %uint 4 |
| 26 |
%uint_1 = OpConstant %uint 1 |
| 27 |
%15 = OpConstantComposite %v4uint %uint_1 %uint_1 %uint_1 %uint_1 |
| 28 |
%int = OpTypeInt 32 1 |
| 29 |
%v4int = OpTypeVector %int 4 |
| 30 |
%main = OpFunction %void None %3 |
| 31 |
%5 = OpLabel |
| 32 |
%18 = OpBitCount %v4uint %15 |
| 33 |
%19 = OpExtInst %v4float %1 Ldexp %11 %18 |
| 34 |
OpStore %_GLF_color %19 |
| 35 |
OpReturn |
| 36 |
OpFunctionEnd |