blob: a7043dae6d15752367d3f3919045bbb0f68272db [file] [log] [blame]
dan sinclair1b77b6c2024-08-06 15:47:05 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 1
4; Bound: 20
5; Schema: 0
6 OpCapability Shader
7 OpMemoryModel Logical GLSL450
8 OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
9 OpExecutionMode %unused_entry_point LocalSize 1 1 1
James Price71c1d542024-10-10 23:01:19 +000010 OpMemberName %a_block 0 "inner"
11 OpName %a_block "a_block"
dan sinclair1b77b6c2024-08-06 15:47:05 +000012 OpName %main "main"
13 OpName %unused_entry_point "unused_entry_point"
14 OpDecorate %_runtimearr_uint ArrayStride 4
James Price71c1d542024-10-10 23:01:19 +000015 OpMemberDecorate %a_block 0 Offset 0
16 OpDecorate %a_block Block
dan sinclair1b77b6c2024-08-06 15:47:05 +000017 OpDecorate %1 DescriptorSet 0
18 OpDecorate %1 Binding 0
dan sinclaird117d652024-08-21 01:20:00 +000019 OpDecorate %1 Coherent
dan sinclair1b77b6c2024-08-06 15:47:05 +000020 %uint = OpTypeInt 32 0
21%_runtimearr_uint = OpTypeRuntimeArray %uint
James Price71c1d542024-10-10 23:01:19 +000022 %a_block = OpTypeStruct %_runtimearr_uint
23%_ptr_StorageBuffer_a_block = OpTypePointer StorageBuffer %a_block
24 %1 = OpVariable %_ptr_StorageBuffer_a_block StorageBuffer
dan sinclair1b77b6c2024-08-06 15:47:05 +000025 %void = OpTypeVoid
26 %8 = OpTypeFunction %void
27%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
28 %uint_0 = OpConstant %uint 0
29 %int = OpTypeInt 32 1
30 %int_1 = OpConstant %int 1
31 %uint_1 = OpConstant %uint 1
32 %main = OpFunction %void None %8
33 %9 = OpLabel
34 %10 = OpAccessChain %_ptr_StorageBuffer_uint %1 %uint_0 %int_1
dan sinclair50260412024-08-28 19:43:27 +000035 %15 = OpLoad %uint %10 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000036 %16 = OpISub %uint %15 %uint_1
dan sinclair50260412024-08-28 19:43:27 +000037 OpStore %10 %16 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000038 OpReturn
39 OpFunctionEnd
40%unused_entry_point = OpFunction %void None %8
41 %19 = OpLabel
42 OpReturn
43 OpFunctionEnd