28 lines
815 B
Plaintext
28 lines
815 B
Plaintext
; Test: SpvModuleScopeVarParserTest_VertexIndex_U32_Load_Direct.spvasm
|
|
; SPIR-V
|
|
; Version: 1.0
|
|
; Generator: Khronos SPIR-V Tools Assembler; 0
|
|
; Bound: 14
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpMemoryModel Logical Simple
|
|
OpEntryPoint Vertex %3 "main" %gl_Position %gl_VertexIndex
|
|
OpDecorate %gl_Position BuiltIn Position
|
|
OpDecorate %gl_VertexIndex BuiltIn VertexIndex
|
|
%void = OpTypeVoid
|
|
%6 = OpTypeFunction %void
|
|
%float = OpTypeFloat 32
|
|
%uint = OpTypeInt 32 0
|
|
%int = OpTypeInt 32 1
|
|
%_ptr_Input_uint = OpTypePointer Input %uint
|
|
%gl_VertexIndex = OpVariable %_ptr_Input_uint Input
|
|
%v4float = OpTypeVector %float 4
|
|
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
%gl_Position = OpVariable %_ptr_Output_v4float Output
|
|
%3 = OpFunction %void None %6
|
|
%13 = OpLabel
|
|
%2 = OpLoad %uint %gl_VertexIndex
|
|
OpReturn
|
|
OpFunctionEnd
|
|
|