Blender
V5.0
source
blender
draw
engines
eevee
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
11
#include "
GPU_shader_shared_utils.hh
"
12
13
#ifndef GPU_SHADER
14
namespace
blender::eevee
{
15
#endif
16
17
#define VELOCITY_INVALID 512.0
18
19
enum
eVelocityStep
: uint32_t {
20
STEP_PREVIOUS
= 0,
21
STEP_NEXT
= 1,
22
STEP_CURRENT
= 2,
23
};
24
25
struct
VelocityObjectIndex
{
27
packed_int3
ofs
;
29
uint
resource_id
;
30
31
#ifndef GPU_SHADER
32
VelocityObjectIndex
() :
ofs
(-1, -1, -1),
resource_id
(-1) {};
33
#endif
34
};
35
BLI_STATIC_ASSERT_ALIGN
(VelocityObjectIndex, 16)
36
37
struct
VelocityGeometryIndex
{
39
packed_int3
ofs
;
41
bool32_t
do_deform
;
46
packed_int3
len
;
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
};
54
BLI_STATIC_ASSERT_ALIGN
(VelocityGeometryIndex, 16)
55
56
struct
VelocityIndex
{
57
VelocityObjectIndex
obj
;
58
VelocityGeometryIndex
geo
;
59
};
60
BLI_STATIC_ASSERT_ALIGN
(
VelocityGeometryIndex
, 16)
61
62
#ifndef GPU_SHADER
63
}
// namespace blender::eevee
64
#endif
BLI_STATIC_ASSERT_ALIGN
#define BLI_STATIC_ASSERT_ALIGN(st, align)
Definition
BLI_assert.h:86
uint
unsigned int uint
Definition
BLI_sys_types.h:64
GPU_shader_shared_utils.hh
bool32_t
int32_t bool32_t
Definition
GPU_shader_shared_utils.hh:83
false
return false
Definition
bmesh_operator_api_inline.hh:198
blender::eevee
Definition
eevee_ambient_occlusion.cc:29
blender::eevee::eVelocityStep
eVelocityStep
Definition
eevee_velocity_shared.hh:19
blender::eevee::STEP_PREVIOUS
@ STEP_PREVIOUS
Definition
eevee_velocity_shared.hh:20
blender::eevee::STEP_NEXT
@ STEP_NEXT
Definition
eevee_velocity_shared.hh:21
blender::eevee::STEP_CURRENT
@ STEP_CURRENT
Definition
eevee_velocity_shared.hh:22
blender::eevee::VelocityGeometryIndex
Definition
eevee_velocity_shared.hh:37
blender::eevee::VelocityGeometryIndex::ofs
packed_int3 ofs
Definition
eevee_velocity_shared.hh:39
blender::eevee::VelocityGeometryIndex::do_deform
bool32_t do_deform
Definition
eevee_velocity_shared.hh:41
blender::eevee::VelocityGeometryIndex::VelocityGeometryIndex
VelocityGeometryIndex()
Definition
eevee_velocity_shared.hh:51
blender::eevee::VelocityGeometryIndex::_pad0
int _pad0
Definition
eevee_velocity_shared.hh:48
blender::eevee::VelocityGeometryIndex::len
packed_int3 len
Definition
eevee_velocity_shared.hh:46
blender::eevee::VelocityIndex
Definition
eevee_velocity_shared.hh:56
blender::eevee::VelocityIndex::obj
VelocityObjectIndex obj
Definition
eevee_velocity_shared.hh:57
blender::eevee::VelocityIndex::geo
VelocityGeometryIndex geo
Definition
eevee_velocity_shared.hh:58
blender::eevee::VelocityObjectIndex
Definition
eevee_velocity_shared.hh:25
blender::eevee::VelocityObjectIndex::VelocityObjectIndex
VelocityObjectIndex()
Definition
eevee_velocity_shared.hh:32
blender::eevee::VelocityObjectIndex::resource_id
uint resource_id
Definition
eevee_velocity_shared.hh:29
blender::eevee::VelocityObjectIndex::ofs
packed_int3 ofs
Definition
eevee_velocity_shared.hh:27
packed_int3
Definition
types_int3.h:111
Generated on
for Blender by
doxygen
1.16.1