blob: b6d35c37fc93fbad55bbd806191c82c9fe67fb92 [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: 26
5; Schema: 0
6 OpCapability Shader
7 OpMemoryModel Logical GLSL450
8 OpEntryPoint GLCompute %main "main"
9 OpExecutionMode %main LocalSize 1 1 1
10 OpMemberName %tint_symbol_1 0 "tint_symbol"
11 OpName %tint_symbol_1 "tint_symbol_1"
12 OpName %main "main"
13 OpName %v "v"
14 OpName %scalar "scalar"
15 OpName %swizzle2 "swizzle2"
16 OpName %swizzle3 "swizzle3"
17 OpMemberDecorate %tint_symbol_1 0 Offset 0
18 OpDecorate %tint_symbol_1 Block
19 OpDecorate %1 DescriptorSet 0
20 OpDecorate %1 Binding 0
dan sinclaird117d652024-08-21 01:20:00 +000021 OpDecorate %1 Coherent
dan sinclair1b77b6c2024-08-06 15:47:05 +000022 %float = OpTypeFloat 32
23 %v3float = OpTypeVector %float 3
24%tint_symbol_1 = OpTypeStruct %v3float
25%_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1
26 %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer
27 %void = OpTypeVoid
28 %8 = OpTypeFunction %void
29 %float_1 = OpConstant %float 1
30 %float_2 = OpConstant %float 2
31 %float_3 = OpConstant %float 3
32 %v = OpConstantComposite %v3float %float_1 %float_2 %float_3
33 %v2float = OpTypeVector %float 2
34%_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float
35 %uint = OpTypeInt 32 0
36 %uint_0 = OpConstant %uint 0
37 %main = OpFunction %void None %8
38 %9 = OpLabel
39 %scalar = OpCompositeExtract %float %v 1
40 %swizzle2 = OpVectorShuffle %v2float %v %v 0 2
41 %swizzle3 = OpVectorShuffle %v3float %v %v 0 2 1
42 %18 = OpCompositeConstruct %v3float %scalar %scalar %scalar
43 %19 = OpCompositeConstruct %v3float %swizzle2 %float_1
44 %20 = OpFAdd %v3float %18 %19
45 %21 = OpFAdd %v3float %20 %swizzle3
46 %22 = OpAccessChain %_ptr_StorageBuffer_v3float %1 %uint_0
dan sinclair50260412024-08-28 19:43:27 +000047 OpStore %22 %21 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000048 OpReturn
49 OpFunctionEnd