2021-07-18 15:41:25 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2021-08-05 17:34:19 +00:00
|
|
|
; Bound: 30
|
2021-07-18 15:41:25 +00:00
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical GLSL450
|
2021-08-05 17:34:19 +00:00
|
|
|
OpEntryPoint Fragment %frag_main "frag_main" %value
|
2021-07-18 15:41:25 +00:00
|
|
|
OpExecutionMode %frag_main OriginUpperLeft
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %value "value"
|
|
|
|
OpName %frag_main_inner "frag_main_inner"
|
2021-07-18 15:41:25 +00:00
|
|
|
OpName %b "b"
|
|
|
|
OpName %v "v"
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %frag_main "frag_main"
|
|
|
|
OpDecorate %value Location 0
|
2021-07-18 15:41:25 +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
|
|
|
|
%6 = OpTypeFunction %v4float
|
2021-07-18 15:41:25 +00:00
|
|
|
%float_0 = OpConstant %float 0
|
|
|
|
%_ptr_Function_float = OpTypePointer Function %float
|
2021-08-05 17:34:19 +00:00
|
|
|
%12 = OpConstantNull %float
|
2021-07-18 15:41:25 +00:00
|
|
|
%v3float = OpTypeVector %float 3
|
|
|
|
%_ptr_Function_v3float = OpTypePointer Function %v3float
|
2021-08-05 17:34:19 +00:00
|
|
|
%18 = OpConstantNull %v3float
|
2021-07-18 15:41:25 +00:00
|
|
|
%float_1 = OpConstant %float 1
|
2021-08-05 17:34:19 +00:00
|
|
|
%void = OpTypeVoid
|
|
|
|
%25 = OpTypeFunction %void
|
|
|
|
%frag_main_inner = OpFunction %v4float None %6
|
|
|
|
%8 = OpLabel
|
|
|
|
%b = OpVariable %_ptr_Function_float Function %12
|
|
|
|
%v = OpVariable %_ptr_Function_v3float Function %18
|
2021-07-18 15:41:25 +00:00
|
|
|
OpStore %b %float_0
|
2021-08-05 17:34:19 +00:00
|
|
|
%14 = OpLoad %float %b
|
|
|
|
%15 = OpCompositeConstruct %v3float %14 %14 %14
|
|
|
|
OpStore %v %15
|
|
|
|
%19 = OpLoad %v3float %v
|
|
|
|
%20 = OpCompositeExtract %float %19 0
|
|
|
|
%21 = OpCompositeExtract %float %19 1
|
|
|
|
%22 = OpCompositeExtract %float %19 2
|
|
|
|
%24 = OpCompositeConstruct %v4float %20 %21 %22 %float_1
|
|
|
|
OpReturnValue %24
|
|
|
|
OpFunctionEnd
|
|
|
|
%frag_main = OpFunction %void None %25
|
|
|
|
%28 = OpLabel
|
|
|
|
%29 = OpFunctionCall %v4float %frag_main_inner
|
|
|
|
OpStore %value %29
|
2021-07-18 15:41:25 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|