dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +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: 30 |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | OpCapability GroupNonUniformBallot |
| 8 | OpMemoryModel Logical GLSL450 |
Natalie Chouinard | 8f3ec78 | 2024-08-08 13:41:53 +0000 | [diff] [blame] | 9 | OpEntryPoint Fragment %fragment_main "fragment_main" |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +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 |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +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 %subgroupBroadcast_279027 "subgroupBroadcast_279027" |
| 16 | OpName %arg_0 "arg_0" |
| 17 | OpName %res "res" |
Natalie Chouinard | 8f3ec78 | 2024-08-08 13:41:53 +0000 | [diff] [blame] | 18 | OpName %fragment_main "fragment_main" |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 19 | OpName %compute_main "compute_main" |
| 20 | OpMemberDecorate %tint_symbol_1 0 Offset 0 |
| 21 | OpDecorate %tint_symbol_1 Block |
| 22 | OpDecorate %1 DescriptorSet 0 |
| 23 | OpDecorate %1 Binding 0 |
dan sinclair | d117d65 | 2024-08-21 01:20:00 +0000 | [diff] [blame] | 24 | OpDecorate %1 Coherent |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 25 | %uint = OpTypeInt 32 0 |
| 26 | %v4uint = OpTypeVector %uint 4 |
| 27 | %tint_symbol_1 = OpTypeStruct %v4uint |
| 28 | %_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1 |
| 29 | %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer |
| 30 | %7 = OpTypeFunction %v4uint |
| 31 | %_ptr_Function_v4uint = OpTypePointer Function %v4uint |
| 32 | %uint_1 = OpConstant %uint 1 |
| 33 | %11 = OpConstantComposite %v4uint %uint_1 %uint_1 %uint_1 %uint_1 |
| 34 | %uint_3 = OpConstant %uint 3 |
| 35 | %void = OpTypeVoid |
| 36 | %20 = OpTypeFunction %void |
| 37 | %_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint |
| 38 | %uint_0 = OpConstant %uint 0 |
| 39 | %subgroupBroadcast_279027 = OpFunction %v4uint None %7 |
| 40 | %8 = OpLabel |
| 41 | %arg_0 = OpVariable %_ptr_Function_v4uint Function |
| 42 | %res = OpVariable %_ptr_Function_v4uint Function |
| 43 | OpStore %arg_0 %11 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 44 | %13 = OpLoad %v4uint %arg_0 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 45 | %14 = OpGroupNonUniformBroadcast %v4uint %uint_3 %13 %uint_1 |
| 46 | OpStore %res %14 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 47 | %17 = OpLoad %v4uint %res None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 48 | OpReturnValue %17 |
| 49 | OpFunctionEnd |
Natalie Chouinard | 8f3ec78 | 2024-08-08 13:41:53 +0000 | [diff] [blame] | 50 | %fragment_main = OpFunction %void None %20 |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 51 | %21 = OpLabel |
| 52 | %22 = OpFunctionCall %v4uint %subgroupBroadcast_279027 |
| 53 | %23 = OpAccessChain %_ptr_StorageBuffer_v4uint %1 %uint_0 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 54 | OpStore %23 %22 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 55 | OpReturn |
| 56 | OpFunctionEnd |
Natalie Chouinard | 8f3ec78 | 2024-08-08 13:41:53 +0000 | [diff] [blame] | 57 | %compute_main = OpFunction %void None %20 |
| 58 | %27 = OpLabel |
| 59 | %28 = OpFunctionCall %v4uint %subgroupBroadcast_279027 |
| 60 | %29 = OpAccessChain %_ptr_StorageBuffer_v4uint %1 %uint_0 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 61 | OpStore %29 %28 None |
Natalie Chouinard | 8f3ec78 | 2024-08-08 13:41:53 +0000 | [diff] [blame] | 62 | OpReturn |
| 63 | OpFunctionEnd |