Blender V5.0
eevee_velocity_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 VELOCITY_INVALID 512.0
18
19enum eVelocityStep : uint32_t {
23};
24
30
31#ifndef GPU_SHADER
32 VelocityObjectIndex() : ofs(-1, -1, -1), resource_id(-1) {};
33#endif
34};
35BLI_STATIC_ASSERT_ALIGN(VelocityObjectIndex, 16)
36
47
48 int _pad0;
49
50#ifndef GPU_SHADER
51 VelocityGeometryIndex() : ofs(-1, -1, -1), do_deform(false), len(-1, -1, -1), _pad0(1) {};
52#endif
53};
54BLI_STATIC_ASSERT_ALIGN(VelocityGeometryIndex, 16)
55
61
62#ifndef GPU_SHADER
63} // namespace blender::eevee
64#endif
#define BLI_STATIC_ASSERT_ALIGN(st, align)
Definition BLI_assert.h:86
unsigned int uint
int32_t bool32_t