blob: 28e9dc77f5375bba70d7c76a3c4158838790171d [file] [log] [blame] [edit]
; Test: SpvModuleScopeVarParserTest_SampleMask_Out_U32_AccessChain.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_Output__arr_uint_uint_1 Output
%4 = OpFunction %void None %6
%24 = OpLabel
%2 = OpAccessChain %_ptr_Output_uint %gl_SampleMask %uint_0
%3 = OpAccessChain %_ptr_Output_uint %2
OpStore %2 %uint_0
OpReturn
OpFunctionEnd