blob: 476b04f0be54ae1c181b4d3cd9280e6d3eda74cf [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 18
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main"
OpExecutionMode %main OriginUpperLeft
OpName %S "S"
OpMemberName %S 0 "field0"
OpMemberName %S 1 "field1"
OpName %myvar "myvar"
OpName %main_1 "main_1"
OpName %main "main"
OpDecorate %S Block
OpMemberDecorate %S 0 Offset 0
OpMemberDecorate %S 1 Offset 4
OpDecorate %_runtimearr_uint ArrayStride 4
OpDecorate %myvar DescriptorSet 0
OpDecorate %myvar Binding 0
%uint = OpTypeInt 32 0
%_runtimearr_uint = OpTypeRuntimeArray %uint
%S = OpTypeStruct %uint %_runtimearr_uint
%_ptr_StorageBuffer_S = OpTypePointer StorageBuffer %S
%myvar = OpVariable %_ptr_StorageBuffer_S StorageBuffer
%void = OpTypeVoid
%6 = OpTypeFunction %void
%uint_0 = OpConstant %uint 0
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
%uint_1 = OpConstant %uint 1
%main_1 = OpFunction %void None %6
%9 = OpLabel
%12 = OpAccessChain %_ptr_StorageBuffer_uint %myvar %uint_0
OpStore %12 %uint_0
%14 = OpAccessChain %_ptr_StorageBuffer_uint %myvar %uint_1 %uint_1
OpStore %14 %uint_0
OpReturn
OpFunctionEnd
%main = OpFunction %void None %6
%16 = OpLabel
%17 = OpFunctionCall %void %main_1
OpReturn
OpFunctionEnd