blob: 9b525041c2b305b9850ba2215145a4fcbddfa580 [file] [log] [blame]
David Netod1a026e2021-07-30 16:03:06 +00001; 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
7OpCapability Shader
8OpCapability SampleRateShading
9OpMemoryModel Logical Simple
10OpEntryPoint Fragment %3 "main" %gl_SampleID
11OpExecutionMode %3 OriginUpperLeft
12OpDecorate %gl_SampleID BuiltIn SampleId
Ben Clayton51719cc2022-07-12 19:10:39 +000013OpDecorate %gl_SampleID Flat
David Netod1a026e2021-07-30 16:03:06 +000014%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
25OpReturn
26OpFunctionEnd
27