blob: c2fd0fba084f749e0f4e796e19105f8f3804ba82 [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: 32
5; Schema: 0
6 OpCapability Shader
7 OpMemoryModel Logical GLSL450
8 OpEntryPoint Fragment %fragment_main "fragment_main"
9 OpEntryPoint GLCompute %compute_main "compute_main"
10 OpExecutionMode %fragment_main OriginUpperLeft
11 OpExecutionMode %compute_main LocalSize 1 1 1
12 OpMemberName %tint_symbol_1 0 "tint_symbol"
13 OpName %tint_symbol_1 "tint_symbol_1"
14 OpName %arg_0 "arg_0"
15 OpName %textureLoad_02c48d "textureLoad_02c48d"
16 OpName %res "res"
17 OpName %fragment_main "fragment_main"
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 sinclaird117d652024-08-21 01:20:00 +000023 OpDecorate %1 Coherent
dan sinclair1b77b6c2024-08-06 15:47:05 +000024 OpDecorate %arg_0 DescriptorSet 1
25 OpDecorate %arg_0 Binding 0
dan sinclaird117d652024-08-21 01:20:00 +000026 OpDecorate %arg_0 Coherent
dan sinclair1b77b6c2024-08-06 15:47:05 +000027 %uint = OpTypeInt 32 0
28 %v4uint = OpTypeVector %uint 4
29%tint_symbol_1 = OpTypeStruct %v4uint
30%_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1
31 %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer
32 %8 = OpTypeImage %uint 3D 0 0 0 2 Rgba16ui
33%_ptr_UniformConstant_8 = OpTypePointer UniformConstant %8
34 %arg_0 = OpVariable %_ptr_UniformConstant_8 UniformConstant
35 %10 = OpTypeFunction %v4uint
36 %v3uint = OpTypeVector %uint 3
37 %uint_1 = OpConstant %uint 1
38 %14 = OpConstantComposite %v3uint %uint_1 %uint_1 %uint_1
39%_ptr_Function_v4uint = OpTypePointer Function %v4uint
40 %void = OpTypeVoid
41 %22 = OpTypeFunction %void
42%_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint
43 %uint_0 = OpConstant %uint 0
44%textureLoad_02c48d = 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 %14 None
49 OpStore %res %13
dan sinclair50260412024-08-28 19:43:27 +000050 %19 = OpLoad %v4uint %res None
dan sinclair1b77b6c2024-08-06 15:47:05 +000051 OpReturnValue %19
52 OpFunctionEnd
53%fragment_main = OpFunction %void None %22
54 %23 = OpLabel
55 %24 = OpFunctionCall %v4uint %textureLoad_02c48d
56 %25 = OpAccessChain %_ptr_StorageBuffer_v4uint %1 %uint_0
dan sinclair50260412024-08-28 19:43:27 +000057 OpStore %25 %24 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000058 OpReturn
59 OpFunctionEnd
60%compute_main = OpFunction %void None %22
61 %29 = OpLabel
62 %30 = OpFunctionCall %v4uint %textureLoad_02c48d
63 %31 = OpAccessChain %_ptr_StorageBuffer_v4uint %1 %uint_0
dan sinclair50260412024-08-28 19:43:27 +000064 OpStore %31 %30 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000065 OpReturn
66 OpFunctionEnd