blob: aceeb67bf0172f876d9254fc2be9a08ec31e47b0 [file] [log] [blame]
; Test: SpvParserMemoryTest_RemapStorageBuffer_ThroughAccessChain_NonCascaded.spvasm
; SPIR-V
; Version: 1.0
; Generator: Khronos SPIR-V Tools Assembler; 0
; Bound: 101
; Schema: 0
OpCapability Shader
OpMemoryModel Logical Simple
OpEntryPoint Fragment %100 "main"
OpExecutionMode %100 OriginUpperLeft
OpName %myvar "myvar"
OpDecorate %myvar DescriptorSet 0
OpDecorate %myvar Binding 0
OpDecorate %_struct_4 BufferBlock
OpMemberDecorate %_struct_4 0 Offset 0
OpMemberDecorate %_struct_4 1 Offset 4
OpDecorate %_runtimearr_uint ArrayStride 4
%void = OpTypeVoid
%7 = OpTypeFunction %void
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%uint_1 = OpConstant %uint 1
%_runtimearr_uint = OpTypeRuntimeArray %uint
%_struct_4 = OpTypeStruct %uint %_runtimearr_uint
%_ptr_Uniform__struct_4 = OpTypePointer Uniform %_struct_4
%_ptr_Uniform_uint = OpTypePointer Uniform %uint
%myvar = OpVariable %_ptr_Uniform__struct_4 Uniform
%100 = OpFunction %void None %7
%13 = OpLabel
%1 = OpAccessChain %_ptr_Uniform_uint %myvar %uint_0
OpStore %1 %uint_0
%2 = OpAccessChain %_ptr_Uniform_uint %myvar %uint_1 %uint_1
OpStore %2 %uint_0
OpReturn
OpFunctionEnd