blob: 0d849efcf354b72bbee1a5bae5c185353af7001e [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 17
; 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 %func_S "func_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
%S_block = OpTypeStruct %int
%_ptr_StorageBuffer_S_block = OpTypePointer StorageBuffer %S_block
%S = OpVariable %_ptr_StorageBuffer_S_block StorageBuffer
%void = OpTypeVoid
%5 = OpTypeFunction %void
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int
%int_42 = OpConstant %int 42
%func_S = OpFunction %void None %5
%8 = OpLabel
%12 = OpAccessChain %_ptr_StorageBuffer_int %S %uint_0
OpStore %12 %int_42
OpReturn
OpFunctionEnd
%main = OpFunction %void None %5
%15 = OpLabel
%16 = OpFunctionCall %void %func_S
OpReturn
OpFunctionEnd