dawn-cmake/test/tint/unittest/reader/spirv/SpvModuleScopeVarParserTest...

43 lines
1.4 KiB
Plaintext
Raw Permalink Normal View History

; Test: SpvModuleScopeVarParserTest_SampleMask_In_WithStride.spvasm
; SPIR-V
; Version: 1.0
; Generator: Khronos SPIR-V Tools Assembler; 0
; Bound: 25
; Schema: 0
OpCapability Shader
OpMemoryModel Logical Simple
OpEntryPoint Fragment %4 "main" %gl_SampleMask
OpExecutionMode %4 OriginUpperLeft
OpDecorate %gl_SampleMask BuiltIn SampleMask
OpDecorate %_arr_uint_uint_1 ArrayStride 4
OpDecorate %_arr_uint_uint_2 ArrayStride 4
OpDecorate %_arr_int_uint_1 ArrayStride 4
OpDecorate %_arr_int_uint_2 ArrayStride 4
%void = OpTypeVoid
%10 = OpTypeFunction %void
%float = OpTypeFloat 32
%uint = OpTypeInt 32 0
%int = OpTypeInt 32 1
%int_12 = OpConstant %int 12
%uint_0 = OpConstant %uint 0
%uint_1 = OpConstant %uint 1
%uint_2 = OpConstant %uint 2
%_arr_uint_uint_1 = OpTypeArray %uint %uint_1
%_arr_uint_uint_2 = OpTypeArray %uint %uint_2
%_arr_int_uint_1 = OpTypeArray %int %uint_1
%_arr_int_uint_2 = OpTypeArray %int %uint_2
%_ptr_Input_int = OpTypePointer Input %int
%_ptr_Input_uint = OpTypePointer Input %uint
%_ptr_Output_int = OpTypePointer Output %int
%_ptr_Output_uint = OpTypePointer Output %uint
%_ptr_Input__arr_uint_uint_1 = OpTypePointer Input %_arr_uint_uint_1
%_ptr_Output__arr_uint_uint_1 = OpTypePointer Output %_arr_uint_uint_1
%gl_SampleMask = OpVariable %_ptr_Input__arr_uint_uint_1 Input
%4 = OpFunction %void None %10
%24 = OpLabel
%2 = OpAccessChain %_ptr_Input_uint %gl_SampleMask %uint_0
%3 = OpLoad %uint %2
OpReturn
OpFunctionEnd