blob: 575c73f59e0f2d93e5657f46c5a81b27a93f2b44 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 16
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %s_block "s_block"
OpMemberName %s_block 0 "inner"
OpName %s "s"
OpName %main "main"
OpDecorate %s_block Block
OpMemberDecorate %s_block 0 Offset 0
OpDecorate %s DescriptorSet 0
OpDecorate %s Binding 0
%int = OpTypeInt 32 1
%v3int = OpTypeVector %int 3
%s_block = OpTypeStruct %v3int
%_ptr_StorageBuffer_s_block = OpTypePointer StorageBuffer %s_block
%s = OpVariable %_ptr_StorageBuffer_s_block StorageBuffer
%void = OpTypeVoid
%6 = OpTypeFunction %void
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_StorageBuffer_v3int = OpTypePointer StorageBuffer %v3int
%int_1 = OpConstant %int 1
%15 = OpConstantComposite %v3int %int_1 %int_1 %int_1
%main = OpFunction %void None %6
%9 = OpLabel
%13 = OpAccessChain %_ptr_StorageBuffer_v3int %s %uint_0
OpStore %13 %15
OpReturn
OpFunctionEnd