27 lines
715 B
Plaintext
27 lines
715 B
Plaintext
|
; Test: SpvModuleScopeVarParserTest_SampleId_U32_Load_CopyObject.spvasm
|
||
|
; SPIR-V
|
||
|
; Version: 1.0
|
||
|
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||
|
; Bound: 12
|
||
|
; Schema: 0
|
||
|
OpCapability Shader
|
||
|
OpCapability SampleRateShading
|
||
|
OpMemoryModel Logical Simple
|
||
|
OpEntryPoint Fragment %3 "main" %gl_SampleID
|
||
|
OpExecutionMode %3 OriginUpperLeft
|
||
|
OpDecorate %gl_SampleID BuiltIn SampleId
|
||
|
%void = OpTypeVoid
|
||
|
%5 = OpTypeFunction %void
|
||
|
%float = OpTypeFloat 32
|
||
|
%uint = OpTypeInt 32 0
|
||
|
%int = OpTypeInt 32 1
|
||
|
%_ptr_Input_uint = OpTypePointer Input %uint
|
||
|
%gl_SampleID = OpVariable %_ptr_Input_uint Input
|
||
|
%3 = OpFunction %void None %5
|
||
|
%10 = OpLabel
|
||
|
%11 = OpCopyObject %_ptr_Input_uint %gl_SampleID
|
||
|
%2 = OpLoad %uint %11
|
||
|
OpReturn
|
||
|
OpFunctionEnd
|
||
|
|