blob: 582eeb308284073e434a628a26fb84d99770d287 [file] [log] [blame]
; Test: SpvModuleScopeVarParserTest_BuiltinVertexIndex.spvasm
; SPIR-V
; Version: 1.0
; Generator: Khronos SPIR-V Tools Assembler; 0
; Bound: 53
; Schema: 0
OpCapability Shader
OpMemoryModel Logical Simple
OpEntryPoint Vertex %1 "main" %gl_VertexIndex %position
OpName %position "position"
OpDecorate %position BuiltIn Position
OpDecorate %gl_VertexIndex BuiltIn VertexIndex
%uint = OpTypeInt 32 0
%_ptr_Input_uint = OpTypePointer Input %uint
%gl_VertexIndex = OpVariable %_ptr_Input_uint Input
%void = OpTypeVoid
%6 = OpTypeFunction %void
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%position = OpVariable %_ptr_Output_v4float Output
%1 = OpFunction %void None %6
%10 = OpLabel
OpReturn
OpFunctionEnd