2021-08-26 15:40:06 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2022-11-02 02:25:38 +00:00
|
|
|
; Bound: 19
|
2021-08-26 15:40:06 +00:00
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical GLSL450
|
|
|
|
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
|
|
|
|
OpExecutionMode %unused_entry_point LocalSize 1 1 1
|
2022-11-02 02:25:38 +00:00
|
|
|
OpName %buffer_block "buffer_block"
|
|
|
|
OpMemberName %buffer_block 0 "inner"
|
2021-08-26 15:40:06 +00:00
|
|
|
OpName %Buffer "Buffer"
|
|
|
|
OpMemberName %Buffer 0 "data"
|
|
|
|
OpName %buffer "buffer"
|
|
|
|
OpName %unused_entry_point "unused_entry_point"
|
|
|
|
OpName %main "main"
|
2022-11-02 02:25:38 +00:00
|
|
|
OpDecorate %buffer_block Block
|
|
|
|
OpMemberDecorate %buffer_block 0 Offset 0
|
2021-08-26 15:40:06 +00:00
|
|
|
OpMemberDecorate %Buffer 0 Offset 0
|
|
|
|
OpDecorate %buffer DescriptorSet 0
|
|
|
|
OpDecorate %buffer Binding 0
|
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%Buffer = OpTypeStruct %uint
|
2022-11-02 02:25:38 +00:00
|
|
|
%buffer_block = OpTypeStruct %Buffer
|
|
|
|
%_ptr_StorageBuffer_buffer_block = OpTypePointer StorageBuffer %buffer_block
|
|
|
|
%buffer = OpVariable %_ptr_StorageBuffer_buffer_block StorageBuffer
|
2021-08-26 15:40:06 +00:00
|
|
|
%void = OpTypeVoid
|
2022-11-02 02:25:38 +00:00
|
|
|
%6 = OpTypeFunction %void
|
2021-08-26 15:40:06 +00:00
|
|
|
%uint_0 = OpConstant %uint 0
|
|
|
|
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
|
|
|
|
%uint_1 = OpConstant %uint 1
|
2022-11-02 02:25:38 +00:00
|
|
|
%unused_entry_point = OpFunction %void None %6
|
|
|
|
%9 = OpLabel
|
2021-08-26 15:40:06 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2022-11-02 02:25:38 +00:00
|
|
|
%main = OpFunction %void None %6
|
|
|
|
%11 = OpLabel
|
|
|
|
%14 = OpAccessChain %_ptr_StorageBuffer_uint %buffer %uint_0 %uint_0
|
|
|
|
%15 = OpAccessChain %_ptr_StorageBuffer_uint %buffer %uint_0 %uint_0
|
|
|
|
%16 = OpLoad %uint %15
|
|
|
|
%18 = OpIAdd %uint %16 %uint_1
|
|
|
|
OpStore %14 %18
|
2021-08-26 15:40:06 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|