blob: 525e6a1968ac9b2b4dcc54d898e1fe2087369187 [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: 31
5; Schema: 0
6 OpCapability Shader
7 OpCapability Image1D
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 %arg_0 "arg_0"
16 OpName %textureLoad_b60a86 "textureLoad_b60a86"
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
dan sinclair1b77b6c2024-08-06 15:47:05 +000025 OpDecorate %arg_0 DescriptorSet 1
26 OpDecorate %arg_0 Binding 0
dan sinclaird117d652024-08-21 01:20:00 +000027 OpDecorate %arg_0 Coherent
dan sinclair1b77b6c2024-08-06 15:47:05 +000028 %uint = OpTypeInt 32 0
29 %v4uint = OpTypeVector %uint 4
30%tint_symbol_1 = OpTypeStruct %v4uint
31%_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1
32 %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer
33 %8 = OpTypeImage %uint 1D 0 0 0 2 Rgba32ui
34%_ptr_UniformConstant_8 = OpTypePointer UniformConstant %8
35 %arg_0 = OpVariable %_ptr_UniformConstant_8 UniformConstant
36 %10 = OpTypeFunction %v4uint
37 %int = OpTypeInt 32 1
38 %int_1 = OpConstant %int 1
39%_ptr_Function_v4uint = OpTypePointer Function %v4uint
40 %void = OpTypeVoid
41 %21 = OpTypeFunction %void
42%_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint
43 %uint_0 = OpConstant %uint 0
44%textureLoad_b60a86 = OpFunction %v4uint None %10
45 %11 = OpLabel
46 %res = OpVariable %_ptr_Function_v4uint Function
dan sinclair50260412024-08-28 19:43:27 +000047 %12 = OpLoad %8 %arg_0 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000048 %13 = OpImageRead %v4uint %12 %int_1 None
49 OpStore %res %13
dan sinclair50260412024-08-28 19:43:27 +000050 %18 = OpLoad %v4uint %res None
dan sinclair1b77b6c2024-08-06 15:47:05 +000051 OpReturnValue %18
52 OpFunctionEnd
53%fragment_main = OpFunction %void None %21
54 %22 = OpLabel
55 %23 = OpFunctionCall %v4uint %textureLoad_b60a86
56 %24 = OpAccessChain %_ptr_StorageBuffer_v4uint %1 %uint_0
dan sinclair50260412024-08-28 19:43:27 +000057 OpStore %24 %23 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000058 OpReturn
59 OpFunctionEnd
60%compute_main = OpFunction %void None %21
61 %28 = OpLabel
62 %29 = OpFunctionCall %v4uint %textureLoad_b60a86
63 %30 = OpAccessChain %_ptr_StorageBuffer_v4uint %1 %uint_0
dan sinclair50260412024-08-28 19:43:27 +000064 OpStore %30 %29 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000065 OpReturn
66 OpFunctionEnd