blob: 1843c3f3dcbad79b5a9ba9a576a1b875e1e0efff [file] [log] [blame]
; Test: Samples_SpvModuleScopeVarParserTest_ComputeBuiltin_Load_AccessChain_4.spvasm
; SPIR-V
; Version: 1.0
; Generator: Khronos SPIR-V Tools Assembler; 0
; Bound: 14
; Schema: 0
OpCapability Shader
OpMemoryModel Logical Simple
OpEntryPoint GLCompute %3 "main" %gl_GlobalInvocationID
OpExecutionMode %3 LocalSize 1 1 1
OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId
%void = OpTypeVoid
%5 = OpTypeFunction %void
%float = OpTypeFloat 32
%uint = OpTypeInt 32 0
%int = OpTypeInt 32 1
%v3uint = OpTypeVector %uint 3
%v3int = OpTypeVector %int 3
%_ptr_Input_v3uint = OpTypePointer Input %v3uint
%gl_GlobalInvocationID = OpVariable %_ptr_Input_v3uint Input
%3 = OpFunction %void None %5
%12 = OpLabel
%13 = OpAccessChain %_ptr_Input_v3uint %gl_GlobalInvocationID
%2 = OpLoad %v3uint %13
OpReturn
OpFunctionEnd