80 lines
3.4 KiB
Plaintext
80 lines
3.4 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 40
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Vertex %main "main" %position_param_1 %gl_Position_1 %frag_color_1_1 %vertex_point_size
|
|
OpName %position_param_1 "position_param_1"
|
|
OpName %gl_Position_1 "gl_Position_1"
|
|
OpName %frag_color_1_1 "frag_color_1_1"
|
|
OpName %vertex_point_size "vertex_point_size"
|
|
OpName %position "position"
|
|
OpName %frag_color "frag_color"
|
|
OpName %gl_Position "gl_Position"
|
|
OpName %main_1 "main_1"
|
|
OpName %main_out "main_out"
|
|
OpMemberName %main_out 0 "gl_Position"
|
|
OpMemberName %main_out 1 "frag_color_1"
|
|
OpName %main_inner "main_inner"
|
|
OpName %position_param "position_param"
|
|
OpName %main "main"
|
|
OpDecorate %position_param_1 Location 0
|
|
OpDecorate %gl_Position_1 BuiltIn Position
|
|
OpDecorate %frag_color_1_1 Location 1
|
|
OpDecorate %vertex_point_size BuiltIn PointSize
|
|
OpMemberDecorate %main_out 0 Offset 0
|
|
OpMemberDecorate %main_out 1 Offset 16
|
|
%float = OpTypeFloat 32
|
|
%v4float = OpTypeVector %float 4
|
|
%_ptr_Input_v4float = OpTypePointer Input %v4float
|
|
%position_param_1 = OpVariable %_ptr_Input_v4float Input
|
|
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
%7 = OpConstantNull %v4float
|
|
%gl_Position_1 = OpVariable %_ptr_Output_v4float Output %7
|
|
%frag_color_1_1 = OpVariable %_ptr_Output_v4float Output %7
|
|
%_ptr_Output_float = OpTypePointer Output %float
|
|
%11 = OpConstantNull %float
|
|
%vertex_point_size = OpVariable %_ptr_Output_float Output %11
|
|
%_ptr_Private_v4float = OpTypePointer Private %v4float
|
|
%position = OpVariable %_ptr_Private_v4float Private %7
|
|
%frag_color = OpVariable %_ptr_Private_v4float Private %7
|
|
%gl_Position = OpVariable %_ptr_Private_v4float Private %7
|
|
%void = OpTypeVoid
|
|
%16 = OpTypeFunction %void
|
|
%float_0_5 = OpConstant %float 0.5
|
|
%main_out = OpTypeStruct %v4float %v4float
|
|
%24 = OpTypeFunction %main_out %v4float
|
|
%float_1 = OpConstant %float 1
|
|
%main_1 = OpFunction %void None %16
|
|
%19 = OpLabel
|
|
%20 = OpLoad %v4float %position
|
|
OpStore %gl_Position %20
|
|
%21 = OpLoad %v4float %position
|
|
%23 = OpVectorTimesScalar %v4float %21 %float_0_5
|
|
OpStore %frag_color %23
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%main_inner = OpFunction %main_out None %24
|
|
%position_param = OpFunctionParameter %v4float
|
|
%28 = OpLabel
|
|
OpStore %position %position_param
|
|
%29 = OpFunctionCall %void %main_1
|
|
%30 = OpLoad %v4float %gl_Position
|
|
%31 = OpLoad %v4float %frag_color
|
|
%32 = OpCompositeConstruct %main_out %30 %31
|
|
OpReturnValue %32
|
|
OpFunctionEnd
|
|
%main = OpFunction %void None %16
|
|
%34 = OpLabel
|
|
%36 = OpLoad %v4float %position_param_1
|
|
%35 = OpFunctionCall %main_out %main_inner %36
|
|
%37 = OpCompositeExtract %v4float %35 0
|
|
OpStore %gl_Position_1 %37
|
|
%38 = OpCompositeExtract %v4float %35 1
|
|
OpStore %frag_color_1_1 %38
|
|
OpStore %vertex_point_size %float_1
|
|
OpReturn
|
|
OpFunctionEnd
|