62 lines
2.6 KiB
Plaintext
62 lines
2.6 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 34
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Fragment %main "main" %value
|
|
OpExecutionMode %main OriginUpperLeft
|
|
OpName %value "value"
|
|
OpName %frexp_result_f32 "frexp_result_f32"
|
|
OpMemberName %frexp_result_f32 0 "f"
|
|
OpName %a "a"
|
|
OpName %__frexp_result_f32 "__frexp_result_f32"
|
|
OpMemberName %__frexp_result_f32 0 "fract"
|
|
OpMemberName %__frexp_result_f32 1 "exp"
|
|
OpName %b "b"
|
|
OpName %main_inner "main_inner"
|
|
OpName %main "main"
|
|
OpDecorate %value Location 0
|
|
OpMemberDecorate %frexp_result_f32 0 Offset 0
|
|
OpMemberDecorate %__frexp_result_f32 0 Offset 0
|
|
OpMemberDecorate %__frexp_result_f32 1 Offset 4
|
|
%float = OpTypeFloat 32
|
|
%v4float = OpTypeVector %float 4
|
|
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
%5 = OpConstantNull %v4float
|
|
%value = OpVariable %_ptr_Output_v4float Output %5
|
|
%frexp_result_f32 = OpTypeStruct %float
|
|
%_ptr_Private_frexp_result_f32 = OpTypePointer Private %frexp_result_f32
|
|
%9 = OpConstantNull %frexp_result_f32
|
|
%a = OpVariable %_ptr_Private_frexp_result_f32 Private %9
|
|
%int = OpTypeInt 32 1
|
|
%__frexp_result_f32 = OpTypeStruct %float %int
|
|
%float_0_5 = OpConstant %float 0.5
|
|
%int_1 = OpConstant %int 1
|
|
%14 = OpConstantComposite %__frexp_result_f32 %float_0_5 %int_1
|
|
%_ptr_Private___frexp_result_f32 = OpTypePointer Private %__frexp_result_f32
|
|
%b = OpVariable %_ptr_Private___frexp_result_f32 Private %14
|
|
%17 = OpTypeFunction %v4float
|
|
%uint = OpTypeInt 32 0
|
|
%uint_0 = OpConstant %uint 0
|
|
%_ptr_Private_float = OpTypePointer Private %float
|
|
%27 = OpConstantNull %float
|
|
%void = OpTypeVoid
|
|
%29 = OpTypeFunction %void
|
|
%main_inner = OpFunction %v4float None %17
|
|
%19 = OpLabel
|
|
%23 = OpAccessChain %_ptr_Private_float %a %uint_0
|
|
%24 = OpLoad %float %23
|
|
%25 = OpAccessChain %_ptr_Private_float %b %uint_0
|
|
%26 = OpLoad %float %25
|
|
%28 = OpCompositeConstruct %v4float %24 %26 %27 %27
|
|
OpReturnValue %28
|
|
OpFunctionEnd
|
|
%main = OpFunction %void None %29
|
|
%32 = OpLabel
|
|
%33 = OpFunctionCall %v4float %main_inner
|
|
OpStore %value %33
|
|
OpReturn
|
|
OpFunctionEnd
|