Natalie Chouinard | d0cf77e | 2024-08-06 17:41:20 +0000 | [diff] [blame] | 1 | ; SPIR-V |
| 2 | ; Version: 1.3 |
| 3 | ; Generator: Google Tint Compiler; 1 |
Natalie Chouinard | 8f3ec78 | 2024-08-08 13:41:53 +0000 | [diff] [blame] | 4 | ; Bound: 28 |
Natalie Chouinard | d0cf77e | 2024-08-06 17:41:20 +0000 | [diff] [blame] | 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | OpCapability GroupNonUniformArithmetic |
| 8 | OpMemoryModel Logical GLSL450 |
Natalie Chouinard | 8f3ec78 | 2024-08-08 13:41:53 +0000 | [diff] [blame] | 9 | OpEntryPoint Fragment %fragment_main "fragment_main" |
Natalie Chouinard | d0cf77e | 2024-08-06 17:41:20 +0000 | [diff] [blame] | 10 | OpEntryPoint GLCompute %compute_main "compute_main" |
Natalie Chouinard | 8f3ec78 | 2024-08-08 13:41:53 +0000 | [diff] [blame] | 11 | OpExecutionMode %fragment_main OriginUpperLeft |
Natalie Chouinard | d0cf77e | 2024-08-06 17:41:20 +0000 | [diff] [blame] | 12 | 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 Chouinard | 8f3ec78 | 2024-08-08 13:41:53 +0000 | [diff] [blame] | 17 | OpName %fragment_main "fragment_main" |
Natalie Chouinard | d0cf77e | 2024-08-06 17:41:20 +0000 | [diff] [blame] | 18 | 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 sinclair | d117d65 | 2024-08-21 01:20:00 +0000 | [diff] [blame] | 23 | OpDecorate %1 Coherent |
Natalie Chouinard | d0cf77e | 2024-08-06 17:41:20 +0000 | [diff] [blame] | 24 | %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 sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 43 | %15 = OpLoad %v4uint %res None |
Natalie Chouinard | d0cf77e | 2024-08-06 17:41:20 +0000 | [diff] [blame] | 44 | OpReturnValue %15 |
| 45 | OpFunctionEnd |
Natalie Chouinard | 8f3ec78 | 2024-08-08 13:41:53 +0000 | [diff] [blame] | 46 | %fragment_main = OpFunction %void None %18 |
Natalie Chouinard | d0cf77e | 2024-08-06 17:41:20 +0000 | [diff] [blame] | 47 | %19 = OpLabel |
| 48 | %20 = OpFunctionCall %v4uint %subgroupExclusiveAdd_ec300f |
| 49 | %21 = OpAccessChain %_ptr_StorageBuffer_v4uint %1 %uint_0 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 50 | OpStore %21 %20 None |
Natalie Chouinard | d0cf77e | 2024-08-06 17:41:20 +0000 | [diff] [blame] | 51 | OpReturn |
| 52 | OpFunctionEnd |
Natalie Chouinard | 8f3ec78 | 2024-08-08 13:41:53 +0000 | [diff] [blame] | 53 | %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 sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 57 | OpStore %27 %26 None |
Natalie Chouinard | 8f3ec78 | 2024-08-08 13:41:53 +0000 | [diff] [blame] | 58 | OpReturn |
| 59 | OpFunctionEnd |