blob: ae58e2523b232593f26afdbe324a4b054cbe78b3 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 23
; Schema: 0
OpCapability Shader
%14 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %main "main"
OpName %runtime_in "runtime_in"
OpMemberName %__modf_result_f32 0 "fract"
OpMemberName %__modf_result_f32 1 "whole"
OpName %__modf_result_f32 "__modf_result_f32"
OpName %res "res"
OpName %fract "fract"
OpName %whole "whole"
OpMemberDecorate %__modf_result_f32 0 Offset 0
OpMemberDecorate %__modf_result_f32 1 Offset 4
%void = OpTypeVoid
%3 = OpTypeFunction %void
%float = OpTypeFloat 32
%runtime_in = OpConstant %float 1.25
%__modf_result_f32 = OpTypeStruct %float %float
%_ptr_Function___modf_result_f32 = OpTypePointer Function %__modf_result_f32
%float_0_25 = OpConstant %float 0.25
%float_1 = OpConstant %float 1
%10 = OpConstantComposite %__modf_result_f32 %float_0_25 %float_1
%_ptr_Function_float = OpTypePointer Function %float
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%uint_1 = OpConstant %uint 1
%main = OpFunction %void None %3
%4 = OpLabel
%res = OpVariable %_ptr_Function___modf_result_f32 Function
OpStore %res %10
%13 = OpExtInst %__modf_result_f32 %14 ModfStruct %runtime_in
OpStore %res %13 None
OpStore %res %10 None
%15 = OpAccessChain %_ptr_Function_float %res %uint_0
%fract = OpLoad %float %15 None
%20 = OpAccessChain %_ptr_Function_float %res %uint_1
%whole = OpLoad %float %20 None
OpReturn
OpFunctionEnd