David Neto | d1a026e | 2021-07-30 16:03:06 +0000 | [diff] [blame] | 1 | ; Test: SpvModuleScopeVarParserTest_SampleId_I32_Load_CopyObject.spvasm |
| 2 | ; SPIR-V |
| 3 | ; Version: 1.0 |
| 4 | ; Generator: Khronos SPIR-V Tools Assembler; 0 |
| 5 | ; Bound: 12 |
| 6 | ; Schema: 0 |
| 7 | OpCapability Shader |
| 8 | OpCapability SampleRateShading |
| 9 | OpMemoryModel Logical Simple |
| 10 | OpEntryPoint Fragment %3 "main" %gl_SampleID |
| 11 | OpExecutionMode %3 OriginUpperLeft |
| 12 | OpDecorate %gl_SampleID BuiltIn SampleId |
Ben Clayton | 51719cc | 2022-07-12 19:10:39 +0000 | [diff] [blame] | 13 | OpDecorate %gl_SampleID Flat |
David Neto | d1a026e | 2021-07-30 16:03:06 +0000 | [diff] [blame] | 14 | %void = OpTypeVoid |
| 15 | %5 = OpTypeFunction %void |
| 16 | %float = OpTypeFloat 32 |
| 17 | %uint = OpTypeInt 32 0 |
| 18 | %int = OpTypeInt 32 1 |
| 19 | %_ptr_Input_int = OpTypePointer Input %int |
| 20 | %gl_SampleID = OpVariable %_ptr_Input_int Input |
| 21 | %3 = OpFunction %void None %5 |
| 22 | %10 = OpLabel |
| 23 | %11 = OpCopyObject %_ptr_Input_int %gl_SampleID |
| 24 | %2 = OpLoad %int %11 |
| 25 | OpReturn |
| 26 | OpFunctionEnd |
| 27 | |