blob: 5dd879e9dbac605e8d2b5eb51d11318bbf705802 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 20
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpMemberName %S 0 "f"
OpName %S "S"
OpMemberName %tint_symbol_1 0 "tint_symbol"
OpName %tint_symbol_1 "tint_symbol_1"
OpMemberName %tint_symbol_3 0 "tint_symbol_2"
OpName %tint_symbol_3 "tint_symbol_3"
OpName %main "main"
OpMemberDecorate %S 0 Offset 0
OpMemberDecorate %tint_symbol_1 0 Offset 0
OpDecorate %tint_symbol_1 Block
OpDecorate %1 DescriptorSet 0
OpDecorate %1 Binding 0
OpDecorate %1 NonWritable
OpMemberDecorate %tint_symbol_3 0 Offset 0
OpDecorate %tint_symbol_3 Block
OpDecorate %6 DescriptorSet 0
OpDecorate %6 Binding 1
OpDecorate %6 Coherent
%float = OpTypeFloat 32
%S = OpTypeStruct %float
%tint_symbol_1 = OpTypeStruct %S
%_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1
%1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer
%tint_symbol_3 = OpTypeStruct %S
%_ptr_StorageBuffer_tint_symbol_3 = OpTypePointer StorageBuffer %tint_symbol_3
%6 = OpVariable %_ptr_StorageBuffer_tint_symbol_3 StorageBuffer
%void = OpTypeVoid
%11 = OpTypeFunction %void
%_ptr_StorageBuffer_S = OpTypePointer StorageBuffer %S
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_StorageBuffer_S_0 = OpTypePointer StorageBuffer %S
%main = OpFunction %void None %11
%12 = OpLabel
%13 = OpAccessChain %_ptr_StorageBuffer_S %1 %uint_0
%17 = OpLoad %S %13 None
%18 = OpAccessChain %_ptr_StorageBuffer_S_0 %6 %uint_0
OpStore %18 %17 None
OpReturn
OpFunctionEnd