| ; Test: SpvModuleScopeVarParserTest_SampleMask_Out_U32_Direct.spvasm |
| ; SPIR-V |
| ; Version: 1.0 |
| ; Generator: Khronos SPIR-V Tools Assembler; 0 |
| ; Bound: 24 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical Simple |
| OpEntryPoint Fragment %3 "main" %gl_SampleMask |
| OpExecutionMode %3 OriginUpperLeft |
| OpDecorate %gl_SampleMask BuiltIn SampleMask |
| %void = OpTypeVoid |
| %5 = 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 |
| %3 = OpFunction %void None %5 |
| %23 = OpLabel |
| %2 = OpAccessChain %_ptr_Output_uint %gl_SampleMask %uint_0 |
| OpStore %2 %uint_0 |
| OpReturn |
| OpFunctionEnd |
| |