• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; Test: SpvModuleScopeVarParserTest_SampleId_U32_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
13%void = OpTypeVoid
14%5 = OpTypeFunction %void
15%float = OpTypeFloat 32
16%uint = OpTypeInt 32 0
17%int = OpTypeInt 32 1
18%_ptr_Input_uint = OpTypePointer Input %uint
19%gl_SampleID = OpVariable %_ptr_Input_uint Input
20%3 = OpFunction %void None %5
21%10 = OpLabel
22%11 = OpCopyObject %_ptr_Input_uint %gl_SampleID
23%2 = OpLoad %uint %11
24OpReturn
25OpFunctionEnd
26
27