blob: 98f35f76d286a4d6b8135aba7d6ab165e44f9c27 [file] [log] [blame] [edit]
; Test: SpvModuleScopeVarParserTest_SampleMask_In_U32_Direct.spvasm
; SPIR-V
; Version: 1.0
; Generator: Khronos SPIR-V Tools Assembler; 0
; Bound: 25
; Schema: 0
OpCapability Shader
OpMemoryModel Logical Simple
OpEntryPoint Fragment %4 "main" %gl_SampleMask
OpExecutionMode %4 OriginUpperLeft
OpDecorate %gl_SampleMask BuiltIn SampleMask
%void = OpTypeVoid
%6 = OpTypeFunction %void
%float = OpTypeFloat 32
%uint = OpTypeInt 32 0
%int = OpTypeInt 32 1
%int_12 = OpConstant %int 12
%uint_0 = OpConstant %uint 0
%uint_1 = OpConstant %uint 1
%uint_2 = OpConstant %uint 2
%_arr_uint_uint_1 = OpTypeArray %uint %uint_1
%_arr_uint_uint_2 = OpTypeArray %uint %uint_2
%_arr_int_uint_1 = OpTypeArray %int %uint_1
%_arr_int_uint_2 = OpTypeArray %int %uint_2
%_ptr_Input_int = OpTypePointer Input %int
%_ptr_Input_uint = OpTypePointer Input %uint
%_ptr_Output_int = OpTypePointer Output %int
%_ptr_Output_uint = OpTypePointer Output %uint
%_ptr_Input__arr_uint_uint_1 = OpTypePointer Input %_arr_uint_uint_1
%_ptr_Output__arr_uint_uint_1 = OpTypePointer Output %_arr_uint_uint_1
%gl_SampleMask = OpVariable %_ptr_Input__arr_uint_uint_1 Input
%4 = OpFunction %void None %6
%24 = OpLabel
%2 = OpAccessChain %_ptr_Input_uint %gl_SampleMask %uint_0
%3 = OpLoad %uint %2
OpReturn
OpFunctionEnd