2021-05-18 09:24:18 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2021-08-05 17:34:19 +00:00
|
|
|
; Bound: 25
|
2021-05-18 09:24:18 +00:00
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical GLSL450
|
2021-08-05 17:34:19 +00:00
|
|
|
OpEntryPoint Fragment %main "main" %value
|
2021-05-18 09:24:18 +00:00
|
|
|
OpExecutionMode %main OriginUpperLeft
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %value "value"
|
2021-05-18 09:24:18 +00:00
|
|
|
OpName %bar "bar"
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %main_inner "main_inner"
|
2021-05-18 09:24:18 +00:00
|
|
|
OpName %a "a"
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %main "main"
|
|
|
|
OpDecorate %value Location 0
|
2021-05-18 09:24:18 +00:00
|
|
|
%float = OpTypeFloat 32
|
|
|
|
%v4float = OpTypeVector %float 4
|
|
|
|
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
|
|
%5 = OpConstantNull %v4float
|
2021-08-05 17:34:19 +00:00
|
|
|
%value = OpVariable %_ptr_Output_v4float Output %5
|
2021-05-18 09:24:18 +00:00
|
|
|
%void = OpTypeVoid
|
|
|
|
%6 = OpTypeFunction %void
|
2021-08-05 17:34:19 +00:00
|
|
|
%10 = OpTypeFunction %v4float
|
2021-05-18 09:24:18 +00:00
|
|
|
%v2float = OpTypeVector %float 2
|
2021-08-05 17:34:19 +00:00
|
|
|
%14 = OpConstantNull %v2float
|
2021-05-18 09:24:18 +00:00
|
|
|
%_ptr_Function_v2float = OpTypePointer Function %v2float
|
|
|
|
%float_0_400000006 = OpConstant %float 0.400000006
|
|
|
|
%float_0_800000012 = OpConstant %float 0.800000012
|
|
|
|
%float_1 = OpConstant %float 1
|
2021-08-05 17:34:19 +00:00
|
|
|
%21 = OpConstantComposite %v4float %float_0_400000006 %float_0_400000006 %float_0_800000012 %float_1
|
2021-05-18 09:24:18 +00:00
|
|
|
%bar = OpFunction %void None %6
|
|
|
|
%9 = OpLabel
|
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2021-08-05 17:34:19 +00:00
|
|
|
%main_inner = OpFunction %v4float None %10
|
|
|
|
%12 = OpLabel
|
|
|
|
%a = OpVariable %_ptr_Function_v2float Function %14
|
|
|
|
OpStore %a %14
|
|
|
|
%17 = OpFunctionCall %void %bar
|
|
|
|
OpReturnValue %21
|
2021-05-18 09:24:18 +00:00
|
|
|
OpFunctionEnd
|
|
|
|
%main = OpFunction %void None %6
|
2021-08-05 17:34:19 +00:00
|
|
|
%23 = OpLabel
|
|
|
|
%24 = OpFunctionCall %v4float %main_inner
|
|
|
|
OpStore %value %24
|
2021-05-18 09:24:18 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|