blob: bbc2257d904f6e519f98825fd5233b07d910b07b [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 27
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpMemberName %tint_symbol_1 0 "tint_symbol"
OpName %tint_symbol_1 "tint_symbol_1"
OpName %deref "deref"
OpName %p "p"
OpName %no_deref "no_deref"
OpName %p_0 "p"
OpName %main "main"
OpMemberDecorate %tint_symbol_1 0 Offset 0
OpDecorate %tint_symbol_1 Block
OpDecorate %1 DescriptorSet 0
OpDecorate %1 Binding 0
OpDecorate %1 Coherent
%int = OpTypeInt 32 1
%v4int = OpTypeVector %int 4
%tint_symbol_1 = OpTypeStruct %v4int
%_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1
%1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer
%void = OpTypeVoid
%8 = OpTypeFunction %void
%_ptr_StorageBuffer_v4int = OpTypePointer StorageBuffer %v4int
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%deref = OpFunction %void None %8
%9 = OpLabel
%p = OpAccessChain %_ptr_StorageBuffer_v4int %1 %uint_0
%14 = OpLoad %v4int %p None
%15 = OpVectorShuffle %v4int %14 %14 3 2 1 0
%16 = OpAccessChain %_ptr_StorageBuffer_v4int %1 %uint_0
OpStore %16 %15 None
OpReturn
OpFunctionEnd
%no_deref = OpFunction %void None %8
%18 = OpLabel
%p_0 = OpAccessChain %_ptr_StorageBuffer_v4int %1 %uint_0
%20 = OpLoad %v4int %p_0 None
%21 = OpVectorShuffle %v4int %20 %20 3 2 1 0
%22 = OpAccessChain %_ptr_StorageBuffer_v4int %1 %uint_0
OpStore %22 %21 None
OpReturn
OpFunctionEnd
%main = OpFunction %void None %8
%24 = OpLabel
%25 = OpFunctionCall %void %deref
%26 = OpFunctionCall %void %no_deref
OpReturn
OpFunctionEnd