David Neto | d1a026e | 2021-07-30 16:03:06 +0000 | [diff] [blame] | 1 | ; Test: SpvModuleScopeVarParserTest_SampleMask_In_I32_Direct.spvasm |
| 2 | ; SPIR-V |
| 3 | ; Version: 1.0 |
| 4 | ; Generator: Khronos SPIR-V Tools Assembler; 0 |
| 5 | ; Bound: 25 |
| 6 | ; Schema: 0 |
| 7 | OpCapability Shader |
| 8 | OpMemoryModel Logical Simple |
| 9 | OpEntryPoint Fragment %4 "main" %gl_SampleMask |
| 10 | OpExecutionMode %4 OriginUpperLeft |
| 11 | OpDecorate %gl_SampleMask BuiltIn SampleMask |
| 12 | %void = OpTypeVoid |
| 13 | %6 = OpTypeFunction %void |
| 14 | %float = OpTypeFloat 32 |
| 15 | %uint = OpTypeInt 32 0 |
| 16 | %int = OpTypeInt 32 1 |
| 17 | %int_12 = OpConstant %int 12 |
| 18 | %uint_0 = OpConstant %uint 0 |
| 19 | %uint_1 = OpConstant %uint 1 |
| 20 | %uint_2 = OpConstant %uint 2 |
| 21 | %_arr_uint_uint_1 = OpTypeArray %uint %uint_1 |
| 22 | %_arr_uint_uint_2 = OpTypeArray %uint %uint_2 |
| 23 | %_arr_int_uint_1 = OpTypeArray %int %uint_1 |
| 24 | %_arr_int_uint_2 = OpTypeArray %int %uint_2 |
| 25 | %_ptr_Input_int = OpTypePointer Input %int |
| 26 | %_ptr_Input_uint = OpTypePointer Input %uint |
| 27 | %_ptr_Output_int = OpTypePointer Output %int |
| 28 | %_ptr_Output_uint = OpTypePointer Output %uint |
| 29 | %_ptr_Input__arr_int_uint_1 = OpTypePointer Input %_arr_int_uint_1 |
| 30 | %_ptr_Output__arr_int_uint_1 = OpTypePointer Output %_arr_int_uint_1 |
| 31 | %gl_SampleMask = OpVariable %_ptr_Input__arr_int_uint_1 Input |
| 32 | %4 = OpFunction %void None %6 |
| 33 | %24 = OpLabel |
| 34 | %2 = OpAccessChain %_ptr_Input_int %gl_SampleMask %uint_0 |
| 35 | %3 = OpLoad %int %2 |
| 36 | OpReturn |
| 37 | OpFunctionEnd |
| 38 | |