blob: 29b7beb2881251a18c9488157d27599117a72b24 [file] [log] [blame]
Natalie Chouinardb7114a62024-08-14 16:10:59 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 1
4; Bound: 32
5; Schema: 0
6 OpCapability Shader
7 OpCapability GroupNonUniformQuad
8 OpMemoryModel Logical GLSL450
9 OpEntryPoint Fragment %fragment_main "fragment_main"
10 OpEntryPoint GLCompute %compute_main "compute_main"
11 OpExecutionMode %fragment_main OriginUpperLeft
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 %quadBroadcast_0cc513 "quadBroadcast_0cc513"
16 OpName %arg_0 "arg_0"
17 OpName %res "res"
18 OpName %fragment_main "fragment_main"
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 sinclaird117d652024-08-21 01:20:00 +000024 OpDecorate %1 Coherent
Natalie Chouinardb7114a62024-08-14 16:10:59 +000025 %float = OpTypeFloat 32
26 %v3float = OpTypeVector %float 3
27%tint_symbol_1 = OpTypeStruct %v3float
28%_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1
29 %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer
30 %7 = OpTypeFunction %v3float
31%_ptr_Function_v3float = OpTypePointer Function %v3float
32 %float_1 = OpConstant %float 1
33 %11 = OpConstantComposite %v3float %float_1 %float_1 %float_1
34 %uint = OpTypeInt 32 0
35 %uint_3 = OpConstant %uint 3
36 %uint_1 = OpConstant %uint 1
37 %void = OpTypeVoid
38 %22 = OpTypeFunction %void
39%_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float
40 %uint_0 = OpConstant %uint 0
41%quadBroadcast_0cc513 = OpFunction %v3float None %7
42 %8 = OpLabel
43 %arg_0 = OpVariable %_ptr_Function_v3float Function
44 %res = OpVariable %_ptr_Function_v3float Function
45 OpStore %arg_0 %11
dan sinclair50260412024-08-28 19:43:27 +000046 %13 = OpLoad %v3float %arg_0 None
Natalie Chouinardb7114a62024-08-14 16:10:59 +000047 %14 = OpGroupNonUniformQuadBroadcast %v3float %uint_3 %13 %uint_1
48 OpStore %res %14
dan sinclair50260412024-08-28 19:43:27 +000049 %19 = OpLoad %v3float %res None
Natalie Chouinardb7114a62024-08-14 16:10:59 +000050 OpReturnValue %19
51 OpFunctionEnd
52%fragment_main = OpFunction %void None %22
53 %23 = OpLabel
54 %24 = OpFunctionCall %v3float %quadBroadcast_0cc513
55 %25 = OpAccessChain %_ptr_StorageBuffer_v3float %1 %uint_0
dan sinclair50260412024-08-28 19:43:27 +000056 OpStore %25 %24 None
Natalie Chouinardb7114a62024-08-14 16:10:59 +000057 OpReturn
58 OpFunctionEnd
59%compute_main = OpFunction %void None %22
60 %29 = OpLabel
61 %30 = OpFunctionCall %v3float %quadBroadcast_0cc513
62 %31 = OpAccessChain %_ptr_StorageBuffer_v3float %1 %uint_0
dan sinclair50260412024-08-28 19:43:27 +000063 OpStore %31 %30 None
Natalie Chouinardb7114a62024-08-14 16:10:59 +000064 OpReturn
65 OpFunctionEnd