| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 7 |
| 4 |
; Bound: 17 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Shader |
| 7 |
%1 = OpExtInstImport "GLSL.std.450" |
| 8 |
OpMemoryModel Logical GLSL450 |
| 9 |
OpEntryPoint Fragment %main "main" |
| 10 |
OpExecutionMode %main OriginUpperLeft |
| 11 |
OpSource ESSL 310 |
| 12 |
OpName %main "main" |
| 13 |
OpName %col "col" |
| 14 |
%void = OpTypeVoid |
| 15 |
%3 = OpTypeFunction %void |
| 16 |
%float = OpTypeFloat 32 |
| 17 |
%_ptr_Function_float = OpTypePointer Function %float |
| 18 |
%float_0_150000006 = OpConstant %float 0.150000006 |
| 19 |
%v3float = OpTypeVector %float 3 |
| 20 |
%_ptr_Function_v3float = OpTypePointer Function %v3float |
| 21 |
%int = OpTypeInt 32 1 |
| 22 |
%int_0 = OpConstant %int 0 |
| 23 |
%int_1 = OpConstant %int 1 |
| 24 |
%v2int = OpTypeVector %int 2 |
| 25 |
%_ptr_Function_v2int = OpTypePointer Function %v2int |
| 26 |
%_ptr_Function_int = OpTypePointer Function %int |
| 27 |
%main = OpFunction %void None %3 |
| 28 |
%5 = OpLabel |
| 29 |
%col = OpVariable %_ptr_Function_v3float Function |
| 30 |
%icol = OpVariable %_ptr_Function_v2int Function |
| 31 |
%ptr_x = OpAccessChain %_ptr_Function_float %col %int_0 |
| 32 |
%ptr_y = OpAccessChain %_ptr_Function_int %icol %int_1 |
| 33 |
%16 = OpExtInst %float %1 Modf %float_0_150000006 %ptr_x |
| 34 |
%17 = OpExtInst %float %1 Frexp %float_0_150000006 %ptr_y |
| 35 |
OpReturn |
| 36 |
OpFunctionEnd |