blob: cf42eac01de5ea145a9ed38f83fbb6f25cd43b72 [file] [log] [blame]
; Test: SpvParserMemoryTest_RemapStorageBuffer_ThroughAccessChain_Cascaded.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
%_ptr_Uniform__runtimearr_uint = OpTypePointer Uniform %_runtimearr_uint
%100 = OpFunction %void None %7
%14 = OpLabel
%1 = OpAccessChain %_ptr_Uniform__runtimearr_uint %myvar %uint_1
%2 = OpAccessChain %_ptr_Uniform_uint %1 %uint_1
OpStore %2 %uint_0
OpReturn
OpFunctionEnd