2021-06-03 09:38:34 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2021-06-19 01:12:45 +00:00
|
|
|
; Bound: 47
|
2021-06-03 09:38:34 +00:00
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical GLSL450
|
2021-06-19 01:12:45 +00:00
|
|
|
OpEntryPoint Vertex %vert_main1 "vert_main1" %tint_pointsize %tint_symbol_1 %tint_symbol_2
|
|
|
|
OpEntryPoint Vertex %vert_main2 "vert_main2" %tint_pointsize %tint_symbol_5 %tint_symbol_6
|
|
|
|
OpName %tint_pointsize "tint_pointsize"
|
|
|
|
OpName %tint_symbol_1 "tint_symbol_1"
|
|
|
|
OpName %tint_symbol_2 "tint_symbol_2"
|
|
|
|
OpName %tint_symbol_5 "tint_symbol_5"
|
|
|
|
OpName %tint_symbol_6 "tint_symbol_6"
|
2021-06-03 09:38:34 +00:00
|
|
|
OpName %VertexOutput "VertexOutput"
|
|
|
|
OpMemberName %VertexOutput 0 "pos"
|
|
|
|
OpMemberName %VertexOutput 1 "loc0"
|
|
|
|
OpName %foo "foo"
|
|
|
|
OpName %x "x"
|
2021-06-19 01:12:45 +00:00
|
|
|
OpName %tint_symbol_3 "tint_symbol_3"
|
|
|
|
OpName %tint_symbol "tint_symbol"
|
2021-06-03 09:38:34 +00:00
|
|
|
OpName %vert_main1 "vert_main1"
|
2021-06-19 01:12:45 +00:00
|
|
|
OpName %tint_symbol_7 "tint_symbol_7"
|
|
|
|
OpName %tint_symbol_4 "tint_symbol_4"
|
2021-06-03 09:38:34 +00:00
|
|
|
OpName %vert_main2 "vert_main2"
|
2021-06-19 01:12:45 +00:00
|
|
|
OpDecorate %tint_pointsize BuiltIn PointSize
|
|
|
|
OpDecorate %tint_symbol_1 BuiltIn Position
|
|
|
|
OpDecorate %tint_symbol_2 Location 0
|
2021-06-29 13:36:05 +00:00
|
|
|
OpDecorate %tint_symbol_2 Flat
|
2021-06-19 01:12:45 +00:00
|
|
|
OpDecorate %tint_symbol_5 BuiltIn Position
|
|
|
|
OpDecorate %tint_symbol_6 Location 0
|
2021-06-29 13:36:05 +00:00
|
|
|
OpDecorate %tint_symbol_6 Flat
|
2021-06-03 09:38:34 +00:00
|
|
|
OpMemberDecorate %VertexOutput 0 Offset 0
|
|
|
|
OpMemberDecorate %VertexOutput 1 Offset 16
|
|
|
|
%float = OpTypeFloat 32
|
2021-06-19 01:12:45 +00:00
|
|
|
%_ptr_Output_float = OpTypePointer Output %float
|
|
|
|
%4 = OpConstantNull %float
|
|
|
|
%tint_pointsize = OpVariable %_ptr_Output_float Output %4
|
2021-06-03 09:38:34 +00:00
|
|
|
%v4float = OpTypeVector %float 4
|
2021-06-19 01:12:45 +00:00
|
|
|
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
|
|
%8 = OpConstantNull %v4float
|
|
|
|
%tint_symbol_1 = OpVariable %_ptr_Output_v4float Output %8
|
2021-06-03 09:38:34 +00:00
|
|
|
%int = OpTypeInt 32 1
|
2021-06-19 01:12:45 +00:00
|
|
|
%_ptr_Output_int = OpTypePointer Output %int
|
|
|
|
%12 = OpConstantNull %int
|
|
|
|
%tint_symbol_2 = OpVariable %_ptr_Output_int Output %12
|
|
|
|
%tint_symbol_5 = OpVariable %_ptr_Output_v4float Output %8
|
|
|
|
%tint_symbol_6 = OpVariable %_ptr_Output_int Output %12
|
2021-06-03 09:38:34 +00:00
|
|
|
%VertexOutput = OpTypeStruct %v4float %int
|
2021-06-19 01:12:45 +00:00
|
|
|
%15 = OpTypeFunction %VertexOutput %float
|
2021-06-03 09:38:34 +00:00
|
|
|
%float_1 = OpConstant %float 1
|
|
|
|
%int_42 = OpConstant %int 42
|
2021-06-19 01:12:45 +00:00
|
|
|
%void = OpTypeVoid
|
|
|
|
%24 = OpTypeFunction %void %VertexOutput
|
|
|
|
%31 = OpTypeFunction %void
|
2021-06-03 09:38:34 +00:00
|
|
|
%float_0_5 = OpConstant %float 0.5
|
|
|
|
%float_0_25 = OpConstant %float 0.25
|
2021-06-19 01:12:45 +00:00
|
|
|
%foo = OpFunction %VertexOutput None %15
|
|
|
|
%x = OpFunctionParameter %float
|
|
|
|
%19 = OpLabel
|
|
|
|
%21 = OpCompositeConstruct %v4float %x %x %x %float_1
|
|
|
|
%23 = OpCompositeConstruct %VertexOutput %21 %int_42
|
|
|
|
OpReturnValue %23
|
|
|
|
OpFunctionEnd
|
|
|
|
%tint_symbol_3 = OpFunction %void None %24
|
|
|
|
%tint_symbol = OpFunctionParameter %VertexOutput
|
|
|
|
%28 = OpLabel
|
|
|
|
%29 = OpCompositeExtract %v4float %tint_symbol 0
|
|
|
|
OpStore %tint_symbol_1 %29
|
|
|
|
%30 = OpCompositeExtract %int %tint_symbol 1
|
|
|
|
OpStore %tint_symbol_2 %30
|
2021-06-03 09:38:34 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2021-06-19 01:12:45 +00:00
|
|
|
%vert_main1 = OpFunction %void None %31
|
|
|
|
%33 = OpLabel
|
|
|
|
OpStore %tint_pointsize %float_1
|
|
|
|
%35 = OpFunctionCall %VertexOutput %foo %float_0_5
|
|
|
|
%34 = OpFunctionCall %void %tint_symbol_3 %35
|
|
|
|
OpReturn
|
2021-06-03 09:38:34 +00:00
|
|
|
OpFunctionEnd
|
2021-06-19 01:12:45 +00:00
|
|
|
%tint_symbol_7 = OpFunction %void None %24
|
|
|
|
%tint_symbol_4 = OpFunctionParameter %VertexOutput
|
|
|
|
%39 = OpLabel
|
|
|
|
%40 = OpCompositeExtract %v4float %tint_symbol_4 0
|
|
|
|
OpStore %tint_symbol_5 %40
|
|
|
|
%41 = OpCompositeExtract %int %tint_symbol_4 1
|
|
|
|
OpStore %tint_symbol_6 %41
|
|
|
|
OpReturn
|
2021-06-03 09:38:34 +00:00
|
|
|
OpFunctionEnd
|
2021-06-19 01:12:45 +00:00
|
|
|
%vert_main2 = OpFunction %void None %31
|
|
|
|
%43 = OpLabel
|
|
|
|
OpStore %tint_pointsize %float_1
|
|
|
|
%45 = OpFunctionCall %VertexOutput %foo %float_0_25
|
|
|
|
%44 = OpFunctionCall %void %tint_symbol_7 %45
|
|
|
|
OpReturn
|
2021-06-03 09:38:34 +00:00
|
|
|
OpFunctionEnd
|