Blender V5.0
eevee_motion_blur_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
8
9#pragma once
10
12
13#ifndef GPU_SHADER
14namespace blender::eevee {
15#endif
16
17#define MOTION_BLUR_TILE_SIZE 32
18#define MOTION_BLUR_MAX_TILE 512 /* 16384 / MOTION_BLUR_TILE_SIZE */
30
31/* For some reasons some GLSL compilers do not like this struct.
32 * So we declare it as a uint array instead and do indexing ourselves. */
33#ifdef __cplusplus
34struct MotionBlurTileIndirection {
41};
42BLI_STATIC_ASSERT_ALIGN(MotionBlurTileIndirection, 16)
43#endif
44
45#ifndef GPU_SHADER
46} // namespace blender::eevee
47#endif
#define BLI_STATIC_ASSERT_ALIGN(st, align)
Definition BLI_assert.h:86
unsigned int uint
#define MOTION_BLUR_MAX_TILE
static ulong * next
VecBase< float, 2 > float2