Blender
V5.3
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
10
11
#pragma once
12
13
#include "
GPU_shader_shared_utils.hh
"
14
15
#ifndef GPU_SHADER
16
namespace
blender::eevee
{
17
#endif
18
19
#define VELOCITY_INVALID 512.0
20
21
enum
[[
host_shared
]]
eVelocityStep
:
uint32_t
{
22
STEP_PREVIOUS
,
23
STEP_NEXT
,
24
STEP_CURRENT
,
25
};
26
27
struct
[[
host_shared
]]
VelocityObjectIndex
{
29
packed_int3
ofs
;
31
uint
resource_index
;
32
33
#ifndef GPU_SHADER
34
VelocityObjectIndex
() :
ofs
(-1, -1, -1),
resource_index
(-1) {};
35
#endif
36
};
37
38
struct
[[
host_shared
]]
VelocityGeometryIndex
{
40
packed_int3
ofs
;
42
bool32_t
do_deform
;
47
packed_int3
len
;
48
49
int
_pad0
;
50
51
#ifndef GPU_SHADER
52
VelocityGeometryIndex
() :
ofs
(-1, -1, -1),
do_deform
(
false
),
len
(-1, -1, -1),
_pad0
(1) {};
53
#endif
54
};
55
56
struct
[[
host_shared
]]
VelocityIndex
{
57
struct
VelocityObjectIndex
obj
;
58
struct
VelocityGeometryIndex
geo
;
59
};
60
61
#ifndef GPU_SHADER
62
}
// namespace blender::eevee
63
#endif
GPU_shader_shared_utils.hh
host_shared
#define host_shared
Definition
GPU_shader_shared_utils.hh:144
bool32_t
int32_t bool32_t
Definition
GPU_shader_shared_utils.hh:87
blender::eevee
Definition
eevee_ambient_occlusion.cc:29
blender::eevee::eVelocityStep
eVelocityStep
Definition
eevee_velocity_shared.hh:21
blender::eevee::STEP_PREVIOUS
@ STEP_PREVIOUS
Definition
eevee_velocity_shared.hh:22
blender::eevee::STEP_NEXT
@ STEP_NEXT
Definition
eevee_velocity_shared.hh:23
blender::eevee::STEP_CURRENT
@ STEP_CURRENT
Definition
eevee_velocity_shared.hh:24
blender::uint
unsigned int uint
Definition
BKE_text.h:55
blender::uint32_t
unsigned int uint32_t
Definition
BKE_text.h:81
blender::false
return false
Definition
bmesh_operator_api_inline.hh:200
blender::eevee::VelocityGeometryIndex
Definition
eevee_velocity_shared.hh:38
blender::eevee::VelocityGeometryIndex::ofs
packed_int3 ofs
Definition
eevee_velocity_shared.hh:40
blender::eevee::VelocityGeometryIndex::do_deform
bool32_t do_deform
Definition
eevee_velocity_shared.hh:42
blender::eevee::VelocityGeometryIndex::VelocityGeometryIndex
VelocityGeometryIndex()
Definition
eevee_velocity_shared.hh:52
blender::eevee::VelocityGeometryIndex::_pad0
int _pad0
Definition
eevee_velocity_shared.hh:49
blender::eevee::VelocityGeometryIndex::len
packed_int3 len
Definition
eevee_velocity_shared.hh:47
blender::eevee::VelocityIndex
Definition
eevee_velocity_shared.hh:56
blender::eevee::VelocityIndex::geo
struct VelocityGeometryIndex geo
Definition
eevee_velocity_shared.hh:58
blender::eevee::VelocityIndex::obj
struct VelocityObjectIndex obj
Definition
eevee_velocity_shared.hh:57
blender::eevee::VelocityObjectIndex
Definition
eevee_velocity_shared.hh:27
blender::eevee::VelocityObjectIndex::VelocityObjectIndex
VelocityObjectIndex()
Definition
eevee_velocity_shared.hh:34
blender::eevee::VelocityObjectIndex::resource_index
uint resource_index
Definition
eevee_velocity_shared.hh:31
blender::eevee::VelocityObjectIndex::ofs
packed_int3 ofs
Definition
eevee_velocity_shared.hh:29
packed_int3
Definition
types_int3.h:111
Generated on
for Blender by
doxygen
1.18.0