56 lines
2.1 KiB
Plaintext
56 lines
2.1 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 27
|
|
; 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_block "input_block"
|
|
OpMemberName %input_block 0 "inner"
|
|
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 Block
|
|
OpMemberDecorate %input_block 0 Offset 0
|
|
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
|
|
%input_block = OpTypeStruct %Input
|
|
%_ptr_StorageBuffer_input_block = OpTypePointer StorageBuffer %input_block
|
|
%input = OpVariable %_ptr_StorageBuffer_input_block StorageBuffer
|
|
%void = OpTypeVoid
|
|
%11 = OpTypeFunction %void %v3uint
|
|
%uint_0 = OpConstant %uint 0
|
|
%_ptr_StorageBuffer_v3int = OpTypePointer StorageBuffer %v3int
|
|
%20 = OpConstantNull %v3int
|
|
%22 = OpTypeFunction %void
|
|
%main_inner = OpFunction %void None %11
|
|
%id = OpFunctionParameter %v3uint
|
|
%15 = OpLabel
|
|
%18 = OpAccessChain %_ptr_StorageBuffer_v3int %input %uint_0 %uint_0
|
|
%19 = OpLoad %v3int %18
|
|
%21 = OpISub %v3int %19 %20
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%main = OpFunction %void None %22
|
|
%24 = OpLabel
|
|
%26 = OpLoad %v3uint %id_1
|
|
%25 = OpFunctionCall %void %main_inner %26
|
|
OpReturn
|
|
OpFunctionEnd
|