blob: 4184efb59461df18a16b517a6a064f5da52f0111 [file] [log] [blame]
Natalie Chouinardd0cf77e2024-08-06 17:41:20 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 1
Natalie Chouinard8f3ec782024-08-08 13:41:53 +00004; Bound: 28
Natalie Chouinardd0cf77e2024-08-06 17:41:20 +00005; Schema: 0
6 OpCapability Shader
7 OpCapability GroupNonUniformArithmetic
8 OpMemoryModel Logical GLSL450
Natalie Chouinard8f3ec782024-08-08 13:41:53 +00009 OpEntryPoint Fragment %fragment_main "fragment_main"
Natalie Chouinardd0cf77e2024-08-06 17:41:20 +000010 OpEntryPoint GLCompute %compute_main "compute_main"
Natalie Chouinard8f3ec782024-08-08 13:41:53 +000011 OpExecutionMode %fragment_main OriginUpperLeft
Natalie Chouinardd0cf77e2024-08-06 17:41:20 +000012 OpExecutionMode %compute_main LocalSize 1 1 1
13 OpMemberName %tint_symbol_1 0 "tint_symbol"
14 OpName %tint_symbol_1 "tint_symbol_1"
15 OpName %subgroupExclusiveAdd_ec300f "subgroupExclusiveAdd_ec300f"
16 OpName %res "res"
Natalie Chouinard8f3ec782024-08-08 13:41:53 +000017 OpName %fragment_main "fragment_main"
Natalie Chouinardd0cf77e2024-08-06 17:41:20 +000018 OpName %compute_main "compute_main"
19 OpMemberDecorate %tint_symbol_1 0 Offset 0
20 OpDecorate %tint_symbol_1 Block
21 OpDecorate %1 DescriptorSet 0
22 OpDecorate %1 Binding 0
dan sinclaird117d652024-08-21 01:20:00 +000023 OpDecorate %1 Coherent
Natalie Chouinardd0cf77e2024-08-06 17:41:20 +000024 %uint = OpTypeInt 32 0
25 %v4uint = OpTypeVector %uint 4
26%tint_symbol_1 = OpTypeStruct %v4uint
27%_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1
28 %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer
29 %7 = OpTypeFunction %v4uint
30 %uint_3 = OpConstant %uint 3
31 %uint_1 = OpConstant %uint 1
32 %11 = OpConstantComposite %v4uint %uint_1 %uint_1 %uint_1 %uint_1
33%_ptr_Function_v4uint = OpTypePointer Function %v4uint
34 %void = OpTypeVoid
35 %18 = OpTypeFunction %void
36%_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint
37 %uint_0 = OpConstant %uint 0
38%subgroupExclusiveAdd_ec300f = OpFunction %v4uint None %7
39 %8 = OpLabel
40 %res = OpVariable %_ptr_Function_v4uint Function
41 %9 = OpGroupNonUniformIAdd %v4uint %uint_3 ExclusiveScan %11
42 OpStore %res %9
dan sinclair50260412024-08-28 19:43:27 +000043 %15 = OpLoad %v4uint %res None
Natalie Chouinardd0cf77e2024-08-06 17:41:20 +000044 OpReturnValue %15
45 OpFunctionEnd
Natalie Chouinard8f3ec782024-08-08 13:41:53 +000046%fragment_main = OpFunction %void None %18
Natalie Chouinardd0cf77e2024-08-06 17:41:20 +000047 %19 = OpLabel
48 %20 = OpFunctionCall %v4uint %subgroupExclusiveAdd_ec300f
49 %21 = OpAccessChain %_ptr_StorageBuffer_v4uint %1 %uint_0
dan sinclair50260412024-08-28 19:43:27 +000050 OpStore %21 %20 None
Natalie Chouinardd0cf77e2024-08-06 17:41:20 +000051 OpReturn
52 OpFunctionEnd
Natalie Chouinard8f3ec782024-08-08 13:41:53 +000053%compute_main = OpFunction %void None %18
54 %25 = OpLabel
55 %26 = OpFunctionCall %v4uint %subgroupExclusiveAdd_ec300f
56 %27 = OpAccessChain %_ptr_StorageBuffer_v4uint %1 %uint_0
dan sinclair50260412024-08-28 19:43:27 +000057 OpStore %27 %26 None
Natalie Chouinard8f3ec782024-08-08 13:41:53 +000058 OpReturn
59 OpFunctionEnd