2021-05-18 09:24:18 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2021-06-02 20:53:14 +00:00
|
|
|
; Bound: 50
|
2021-05-18 09:24:18 +00:00
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical GLSL450
|
|
|
|
OpEntryPoint Vertex %vtx_main "vtx_main" %tint_pointsize %tint_symbol %tint_symbol_2
|
|
|
|
OpEntryPoint Fragment %frag_main "frag_main" %tint_symbol_5
|
|
|
|
OpExecutionMode %frag_main OriginUpperLeft
|
|
|
|
OpName %tint_pointsize "tint_pointsize"
|
|
|
|
OpName %tint_symbol "tint_symbol"
|
|
|
|
OpName %tint_symbol_2 "tint_symbol_2"
|
|
|
|
OpName %tint_symbol_5 "tint_symbol_5"
|
|
|
|
OpName %tint_symbol_3 "tint_symbol_3"
|
|
|
|
OpName %tint_symbol_1 "tint_symbol_1"
|
|
|
|
OpName %vtx_main "vtx_main"
|
2021-06-16 17:42:53 +00:00
|
|
|
OpName %pos "pos"
|
2021-05-18 09:24:18 +00:00
|
|
|
OpName %tint_symbol_6 "tint_symbol_6"
|
|
|
|
OpName %tint_symbol_4 "tint_symbol_4"
|
|
|
|
OpName %frag_main "frag_main"
|
|
|
|
OpDecorate %tint_pointsize BuiltIn PointSize
|
|
|
|
OpDecorate %tint_symbol BuiltIn VertexIndex
|
|
|
|
OpDecorate %tint_symbol_2 BuiltIn Position
|
|
|
|
OpDecorate %tint_symbol_5 Location 0
|
2021-06-16 17:42:53 +00:00
|
|
|
OpDecorate %_arr_v2float_uint_3 ArrayStride 8
|
2021-05-18 09:24:18 +00:00
|
|
|
%float = OpTypeFloat 32
|
|
|
|
%_ptr_Output_float = OpTypePointer Output %float
|
|
|
|
%4 = OpConstantNull %float
|
|
|
|
%tint_pointsize = OpVariable %_ptr_Output_float Output %4
|
|
|
|
%uint = OpTypeInt 32 0
|
2021-06-02 20:53:14 +00:00
|
|
|
%_ptr_Input_uint = OpTypePointer Input %uint
|
|
|
|
%tint_symbol = OpVariable %_ptr_Input_uint Input
|
2021-05-18 09:24:18 +00:00
|
|
|
%v4float = OpTypeVector %float 4
|
|
|
|
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
2021-06-16 17:42:53 +00:00
|
|
|
%11 = OpConstantNull %v4float
|
|
|
|
%tint_symbol_2 = OpVariable %_ptr_Output_v4float Output %11
|
|
|
|
%tint_symbol_5 = OpVariable %_ptr_Output_v4float Output %11
|
2021-05-18 09:24:18 +00:00
|
|
|
%void = OpTypeVoid
|
2021-06-16 17:42:53 +00:00
|
|
|
%13 = OpTypeFunction %void %v4float
|
|
|
|
%18 = OpTypeFunction %void
|
2021-05-18 09:24:18 +00:00
|
|
|
%float_1 = OpConstant %float 1
|
2021-06-16 17:42:53 +00:00
|
|
|
%v2float = OpTypeVector %float 2
|
|
|
|
%uint_3 = OpConstant %uint 3
|
|
|
|
%_arr_v2float_uint_3 = OpTypeArray %v2float %uint_3
|
|
|
|
%float_0 = OpConstant %float 0
|
|
|
|
%float_0_5 = OpConstant %float 0.5
|
|
|
|
%27 = OpConstantComposite %v2float %float_0 %float_0_5
|
|
|
|
%float_n0_5 = OpConstant %float -0.5
|
|
|
|
%29 = OpConstantComposite %v2float %float_n0_5 %float_n0_5
|
|
|
|
%30 = OpConstantComposite %v2float %float_0_5 %float_n0_5
|
|
|
|
%31 = OpConstantComposite %_arr_v2float_uint_3 %27 %29 %30
|
2021-05-18 09:24:18 +00:00
|
|
|
%_ptr_Function__arr_v2float_uint_3 = OpTypePointer Function %_arr_v2float_uint_3
|
2021-06-02 20:53:14 +00:00
|
|
|
%34 = OpConstantNull %_arr_v2float_uint_3
|
2021-05-18 09:24:18 +00:00
|
|
|
%_ptr_Function_v2float = OpTypePointer Function %v2float
|
2021-06-02 20:53:14 +00:00
|
|
|
%49 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
|
2021-06-16 17:42:53 +00:00
|
|
|
%tint_symbol_3 = OpFunction %void None %13
|
2021-05-18 09:24:18 +00:00
|
|
|
%tint_symbol_1 = OpFunctionParameter %v4float
|
2021-06-16 17:42:53 +00:00
|
|
|
%17 = OpLabel
|
2021-05-18 09:24:18 +00:00
|
|
|
OpStore %tint_symbol_2 %tint_symbol_1
|
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2021-06-16 17:42:53 +00:00
|
|
|
%vtx_main = OpFunction %void None %18
|
|
|
|
%20 = OpLabel
|
|
|
|
%pos = OpVariable %_ptr_Function__arr_v2float_uint_3 Function %34
|
2021-05-18 09:24:18 +00:00
|
|
|
OpStore %tint_pointsize %float_1
|
2021-06-16 17:42:53 +00:00
|
|
|
OpStore %pos %31
|
2021-06-02 20:53:14 +00:00
|
|
|
%36 = OpLoad %uint %tint_symbol
|
2021-06-16 17:42:53 +00:00
|
|
|
%38 = OpAccessChain %_ptr_Function_v2float %pos %36
|
2021-06-02 20:53:14 +00:00
|
|
|
%39 = OpLoad %v2float %38
|
|
|
|
%40 = OpCompositeExtract %float %39 0
|
|
|
|
%41 = OpCompositeExtract %float %39 1
|
|
|
|
%42 = OpCompositeConstruct %v4float %40 %41 %float_0 %float_1
|
|
|
|
%35 = OpFunctionCall %void %tint_symbol_3 %42
|
2021-05-18 09:24:18 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2021-06-16 17:42:53 +00:00
|
|
|
%tint_symbol_6 = OpFunction %void None %13
|
2021-05-18 09:24:18 +00:00
|
|
|
%tint_symbol_4 = OpFunctionParameter %v4float
|
2021-06-02 20:53:14 +00:00
|
|
|
%45 = OpLabel
|
2021-05-18 09:24:18 +00:00
|
|
|
OpStore %tint_symbol_5 %tint_symbol_4
|
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2021-06-16 17:42:53 +00:00
|
|
|
%frag_main = OpFunction %void None %18
|
2021-06-02 20:53:14 +00:00
|
|
|
%47 = OpLabel
|
|
|
|
%48 = OpFunctionCall %void %tint_symbol_6 %49
|
2021-05-18 09:24:18 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|