blob: 42514cc41c5ac085ae10c5367b1cbfac68a94217 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 15
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpMemberName %S 0 "a"
OpName %S "S"
OpMemberName %buf_block 0 "inner"
OpName %buf_block "buf_block"
OpName %main "main"
OpName %p "p"
OpMemberDecorate %S 0 Offset 0
OpMemberDecorate %buf_block 0 Offset 0
OpDecorate %buf_block Block
OpDecorate %1 DescriptorSet 0
OpDecorate %1 Binding 0
OpDecorate %1 Coherent
%int = OpTypeInt 32 1
%S = OpTypeStruct %int
%buf_block = OpTypeStruct %S
%_ptr_StorageBuffer_buf_block = OpTypePointer StorageBuffer %buf_block
%1 = OpVariable %_ptr_StorageBuffer_buf_block StorageBuffer
%void = OpTypeVoid
%8 = OpTypeFunction %void
%_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%int_12 = OpConstant %int 12
%main = OpFunction %void None %8
%9 = OpLabel
%p = OpAccessChain %_ptr_StorageBuffer_int %1 %uint_0 %uint_0
OpStore %p %int_12 None
OpReturn
OpFunctionEnd