47 lines
1.9 KiB
Plaintext
47 lines
1.9 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 24
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Vertex %tint_symbol "tint_symbol" %tint_symbol_1_1 %value %vertex_point_size
|
|
OpName %tint_symbol_1_1 "tint_symbol_1_1"
|
|
OpName %value "value"
|
|
OpName %vertex_point_size "vertex_point_size"
|
|
OpName %tint_symbol_inner "tint_symbol_inner"
|
|
OpName %tint_symbol_1 "tint_symbol_1"
|
|
OpName %tint_symbol "tint_symbol"
|
|
OpDecorate %tint_symbol_1_1 BuiltIn VertexIndex
|
|
OpDecorate %value BuiltIn Position
|
|
OpDecorate %vertex_point_size BuiltIn PointSize
|
|
%uint = OpTypeInt 32 0
|
|
%_ptr_Input_uint = OpTypePointer Input %uint
|
|
%tint_symbol_1_1 = OpVariable %_ptr_Input_uint Input
|
|
%float = OpTypeFloat 32
|
|
%v4float = OpTypeVector %float 4
|
|
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
%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
|
|
%12 = OpTypeFunction %v4float %uint
|
|
%float_1 = OpConstant %float 1
|
|
%17 = OpConstantComposite %v4float %11 %11 %11 %float_1
|
|
%void = OpTypeVoid
|
|
%18 = OpTypeFunction %void
|
|
%tint_symbol_inner = OpFunction %v4float None %12
|
|
%tint_symbol_1 = OpFunctionParameter %uint
|
|
%15 = OpLabel
|
|
OpReturnValue %17
|
|
OpFunctionEnd
|
|
%tint_symbol = OpFunction %void None %18
|
|
%21 = OpLabel
|
|
%23 = OpLoad %uint %tint_symbol_1_1
|
|
%22 = OpFunctionCall %v4float %tint_symbol_inner %23
|
|
OpStore %value %22
|
|
OpStore %vertex_point_size %float_1
|
|
OpReturn
|
|
OpFunctionEnd
|