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
|
2021-08-05 17:34:19 +00:00
|
|
|
OpEntryPoint Vertex %vtx_main "vtx_main" %VertexIndex_1 %value %vertex_point_size
|
|
|
|
OpEntryPoint Fragment %frag_main "frag_main" %value_1
|
2021-05-18 09:24:18 +00:00
|
|
|
OpExecutionMode %frag_main OriginUpperLeft
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %VertexIndex_1 "VertexIndex_1"
|
|
|
|
OpName %value "value"
|
|
|
|
OpName %vertex_point_size "vertex_point_size"
|
|
|
|
OpName %value_1 "value_1"
|
|
|
|
OpName %vtx_main_inner "vtx_main_inner"
|
|
|
|
OpName %VertexIndex "VertexIndex"
|
2021-06-16 17:42:53 +00:00
|
|
|
OpName %pos "pos"
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %vtx_main "vtx_main"
|
|
|
|
OpName %frag_main_inner "frag_main_inner"
|
2021-05-18 09:24:18 +00:00
|
|
|
OpName %frag_main "frag_main"
|
2021-08-05 17:34:19 +00:00
|
|
|
OpDecorate %VertexIndex_1 BuiltIn VertexIndex
|
|
|
|
OpDecorate %value BuiltIn Position
|
|
|
|
OpDecorate %vertex_point_size BuiltIn PointSize
|
|
|
|
OpDecorate %value_1 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
|
|
|
%uint = OpTypeInt 32 0
|
2021-06-02 20:53:14 +00:00
|
|
|
%_ptr_Input_uint = OpTypePointer Input %uint
|
2021-08-05 17:34:19 +00:00
|
|
|
%VertexIndex_1 = OpVariable %_ptr_Input_uint Input
|
|
|
|
%float = OpTypeFloat 32
|
2021-05-18 09:24:18 +00:00
|
|
|
%v4float = OpTypeVector %float 4
|
|
|
|
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
2021-08-05 17:34:19 +00:00
|
|
|
%8 = OpConstantNull %v4float
|
|
|
|
%value = OpVariable %_ptr_Output_v4float Output %8
|
|
|
|
%_ptr_Output_float = OpTypePointer Output %float
|
|
|
|
%11 = OpConstantNull %float
|
|
|
|
%vertex_point_size = OpVariable %_ptr_Output_float Output %11
|
|
|
|
%value_1 = OpVariable %_ptr_Output_v4float Output %8
|
|
|
|
%13 = OpTypeFunction %v4float %uint
|
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
|
2021-08-05 17:34:19 +00:00
|
|
|
%22 = OpConstantComposite %v2float %float_0 %float_0_5
|
2021-06-16 17:42:53 +00:00
|
|
|
%float_n0_5 = OpConstant %float -0.5
|
2021-08-05 17:34:19 +00:00
|
|
|
%24 = OpConstantComposite %v2float %float_n0_5 %float_n0_5
|
|
|
|
%25 = OpConstantComposite %v2float %float_0_5 %float_n0_5
|
|
|
|
%26 = OpConstantComposite %_arr_v2float_uint_3 %22 %24 %25
|
2021-05-18 09:24:18 +00:00
|
|
|
%_ptr_Function__arr_v2float_uint_3 = OpTypePointer Function %_arr_v2float_uint_3
|
2021-08-05 17:34:19 +00:00
|
|
|
%29 = OpConstantNull %_arr_v2float_uint_3
|
2021-05-18 09:24:18 +00:00
|
|
|
%_ptr_Function_v2float = OpTypePointer Function %v2float
|
2021-08-05 17:34:19 +00:00
|
|
|
%float_1 = OpConstant %float 1
|
|
|
|
%void = OpTypeVoid
|
|
|
|
%37 = OpTypeFunction %void
|
|
|
|
%43 = OpTypeFunction %v4float
|
|
|
|
%46 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
|
|
|
|
%vtx_main_inner = OpFunction %v4float None %13
|
|
|
|
%VertexIndex = OpFunctionParameter %uint
|
|
|
|
%16 = OpLabel
|
|
|
|
%pos = OpVariable %_ptr_Function__arr_v2float_uint_3 Function %29
|
|
|
|
OpStore %pos %26
|
|
|
|
%31 = OpAccessChain %_ptr_Function_v2float %pos %VertexIndex
|
|
|
|
%32 = OpLoad %v2float %31
|
|
|
|
%33 = OpCompositeExtract %float %32 0
|
|
|
|
%34 = OpCompositeExtract %float %32 1
|
|
|
|
%36 = OpCompositeConstruct %v4float %33 %34 %float_0 %float_1
|
|
|
|
OpReturnValue %36
|
2021-05-18 09:24:18 +00:00
|
|
|
OpFunctionEnd
|
2021-08-05 17:34:19 +00:00
|
|
|
%vtx_main = OpFunction %void None %37
|
|
|
|
%40 = OpLabel
|
|
|
|
%42 = OpLoad %uint %VertexIndex_1
|
|
|
|
%41 = OpFunctionCall %v4float %vtx_main_inner %42
|
|
|
|
OpStore %value %41
|
|
|
|
OpStore %vertex_point_size %float_1
|
2021-05-18 09:24:18 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2021-08-05 17:34:19 +00:00
|
|
|
%frag_main_inner = OpFunction %v4float None %43
|
2021-06-02 20:53:14 +00:00
|
|
|
%45 = OpLabel
|
2021-08-05 17:34:19 +00:00
|
|
|
OpReturnValue %46
|
2021-05-18 09:24:18 +00:00
|
|
|
OpFunctionEnd
|
2021-08-05 17:34:19 +00:00
|
|
|
%frag_main = OpFunction %void None %37
|
|
|
|
%48 = OpLabel
|
|
|
|
%49 = OpFunctionCall %v4float %frag_main_inner
|
|
|
|
OpStore %value_1 %49
|
2021-05-18 09:24:18 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|