Blender V5.3
eevee_renderbuffers_shared.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
10
11#pragma once
12
14
15#ifndef GPU_SHADER
16namespace blender::eevee {
17#endif
18
19/* Theoretical max is 256 across color and value AOVS with texture array restrictions.
20 * However, the `output_aov()` function performs a linear search inside all the hashes.
21 * If we can find a way to avoid this we can bump this number up. */
22static constexpr int AOV_MAX = 128;
23
25 /* Pack 4 hashes per uint4, using std140 packing rules.
26 * Color AOV hashes are placed before value AOV hashes. */
28 /* Number of AOVs stored. */
35};
36
62
63#ifndef GPU_SHADER
64} // namespace blender::eevee
65#endif
#define host_shared
int32_t bool32_t
static constexpr int AOV_MAX
VecBase< uint32_t, 4 > uint4