blob: 2b45647589e83a08e6fc7c72805606716c21fd1e [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 34
; Schema: 0
OpCapability Shader
%24 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %main "main"
OpName %__frexp_result_vec2 "__frexp_result_vec2"
OpMemberName %__frexp_result_vec2 0 "fract"
OpMemberName %__frexp_result_vec2 1 "exp"
OpName %res "res"
OpMemberDecorate %__frexp_result_vec2 0 Offset 0
OpMemberDecorate %__frexp_result_vec2 1 Offset 8
%void = OpTypeVoid
%1 = OpTypeFunction %void
%float = OpTypeFloat 32
%v2float = OpTypeVector %float 2
%float_1_25 = OpConstant %float 1.25
%float_3_75 = OpConstant %float 3.75
%9 = OpConstantComposite %v2float %float_1_25 %float_3_75
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%__frexp_result_vec2 = OpTypeStruct %v2float %v2int
%float_0_625 = OpConstant %float 0.625
%float_0_9375 = OpConstant %float 0.9375
%15 = OpConstantComposite %v2float %float_0_625 %float_0_9375
%int_1 = OpConstant %int 1
%int_2 = OpConstant %int 2
%18 = OpConstantComposite %v2int %int_1 %int_2
%19 = OpConstantComposite %__frexp_result_vec2 %15 %18
%_ptr_Function___frexp_result_vec2 = OpTypePointer Function %__frexp_result_vec2
%22 = OpConstantNull %__frexp_result_vec2
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Function_v2float = OpTypePointer Function %v2float
%uint_1 = OpConstant %uint 1
%_ptr_Function_v2int = OpTypePointer Function %v2int
%main = OpFunction %void None %1
%4 = OpLabel
%res = OpVariable %_ptr_Function___frexp_result_vec2 Function %22
OpStore %res %19
%23 = OpExtInst %__frexp_result_vec2 %24 FrexpStruct %9
OpStore %res %23
OpStore %res %19
%28 = OpAccessChain %_ptr_Function_v2float %res %uint_0
%29 = OpLoad %v2float %28
%32 = OpAccessChain %_ptr_Function_v2int %res %uint_1
%33 = OpLoad %v2int %32
OpReturn
OpFunctionEnd