blob: bb88ae5bcd519290d119c2b52c7411d8c16d21ae [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 26
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main" %id_1
OpExecutionMode %main LocalSize 1 1 1
OpName %id_1 "id_1"
OpName %Input "Input"
OpMemberName %Input 0 "position"
OpName %input "input"
OpName %main_inner "main_inner"
OpName %id "id"
OpName %main "main"
OpDecorate %id_1 BuiltIn GlobalInvocationId
OpDecorate %Input Block
OpMemberDecorate %Input 0 Offset 0
OpDecorate %input NonWritable
OpDecorate %input DescriptorSet 0
OpDecorate %input Binding 0
%uint = OpTypeInt 32 0
%v3uint = OpTypeVector %uint 3
%_ptr_Input_v3uint = OpTypePointer Input %v3uint
%id_1 = OpVariable %_ptr_Input_v3uint Input
%int = OpTypeInt 32 1
%v3int = OpTypeVector %int 3
%Input = OpTypeStruct %v3int
%_ptr_StorageBuffer_Input = OpTypePointer StorageBuffer %Input
%input = OpVariable %_ptr_StorageBuffer_Input StorageBuffer
%void = OpTypeVoid
%10 = OpTypeFunction %void %v3uint
%uint_0 = OpConstant %uint 0
%_ptr_StorageBuffer_v3int = OpTypePointer StorageBuffer %v3int
%19 = OpConstantNull %v3int
%21 = OpTypeFunction %void
%main_inner = OpFunction %void None %10
%id = OpFunctionParameter %v3uint
%14 = OpLabel
%17 = OpAccessChain %_ptr_StorageBuffer_v3int %input %uint_0
%18 = OpLoad %v3int %17
%20 = OpISub %v3int %18 %19
OpReturn
OpFunctionEnd
%main = OpFunction %void None %21
%23 = OpLabel
%25 = OpLoad %v3uint %id_1
%24 = OpFunctionCall %void %main_inner %25
OpReturn
OpFunctionEnd