Blender
V4.3
source
blender
draw
engines
select
select_shader_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
5
#ifndef GPU_SHADER
6
# pragma once
7
8
# include "
GPU_shader_shared_utils.hh
"
9
10
namespace
blender::draw::select
{
11
12
#endif
13
14
/* Matches eV3DSelectMode */
15
enum
SelectType
:
uint32_t
{
16
SELECT_ALL
= 0u,
17
SELECT_PICK_ALL
= 1u,
18
SELECT_PICK_NEAREST
= 2u,
19
};
20
21
struct
SelectInfoData
{
22
int2
cursor
;
23
SelectType
mode
;
24
uint
_pad0
;
25
};
26
BLI_STATIC_ASSERT_ALIGN
(
SelectInfoData
, 16)
27
28
#ifndef GPU_SHADER
29
}
// namespace blender::draw::select
30
#endif
BLI_STATIC_ASSERT_ALIGN
#define BLI_STATIC_ASSERT_ALIGN(st, align)
Definition
BLI_assert.h:90
uint
unsigned int uint
Definition
BLI_sys_types.h:68
GPU_shader_shared_utils.hh
blender::draw::select
Definition
select_instance.hh:27
blender::draw::select::SelectType
SelectType
Definition
select_shader_shared.hh:15
blender::draw::select::SELECT_ALL
@ SELECT_ALL
Definition
select_shader_shared.hh:16
blender::draw::select::SELECT_PICK_NEAREST
@ SELECT_PICK_NEAREST
Definition
select_shader_shared.hh:18
blender::draw::select::SELECT_PICK_ALL
@ SELECT_PICK_ALL
Definition
select_shader_shared.hh:17
uint32_t
unsigned int uint32_t
Definition
stdint.h:80
blender::VecBase< int32_t, 2 >
blender::draw::select::SelectInfoData
Definition
select_shader_shared.hh:21
blender::draw::select::SelectInfoData::mode
SelectType mode
Definition
select_shader_shared.hh:23
blender::draw::select::SelectInfoData::cursor
int2 cursor
Definition
select_shader_shared.hh:22
blender::draw::select::SelectInfoData::_pad0
uint _pad0
Definition
select_shader_shared.hh:24
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0