Blender
V4.5
source
blender
gpu
intern
gpu_vertex_format_private.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2016 by Mike Erwin. All rights reserved.
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
10
11
#pragma once
12
13
#include "
GPU_vertex_buffer.hh
"
14
15
struct
GPUVertFormat
;
16
17
void
VertexFormat_pack
(
GPUVertFormat
*
format
);
18
void
VertexFormat_texture_buffer_pack
(
GPUVertFormat
*
format
);
19
uint
padding
(
uint
offset,
uint
alignment);
20
uint
vertex_buffer_size
(
const
GPUVertFormat
*
format
,
uint
vertex_len);
21
22
namespace
blender::gpu
{
23
24
bool
is_fetch_normalized
(
VertAttrType
attr_type);
25
bool
is_fetch_int_to_float
(
VertAttrType
attr_type);
26
bool
is_fetch_float
(
VertAttrType
attr_type);
27
28
inline
int
format_component_len
(
const
VertAttrType
format
)
29
{
30
return
format_component_len
(
DataFormat
(int8_t(
format
)));
31
}
32
33
inline
int
to_bytesize
(
const
VertAttrType
format
)
34
{
35
return
to_bytesize
(
DataFormat
(int8_t(
format
)));
36
}
37
38
}
// namespace blender::gpu
uint
unsigned int uint
Definition
BLI_sys_types.h:64
GPU_vertex_buffer.hh
vertex_buffer_size
uint vertex_buffer_size(const GPUVertFormat *format, uint vertex_len)
Definition
gpu_vertex_format.cc:341
padding
uint padding(uint offset, uint alignment)
Definition
gpu_vertex_format.cc:543
VertexFormat_texture_buffer_pack
void VertexFormat_texture_buffer_pack(GPUVertFormat *format)
Definition
gpu_vertex_format.cc:601
VertexFormat_pack
void VertexFormat_pack(GPUVertFormat *format)
Definition
gpu_vertex_format.cc:594
format
format
Definition
logImageCore.h:35
blender::gpu
Definition
blf_internal_types.hh:31
blender::gpu::format_component_len
int format_component_len(const DataFormat format)
Definition
GPU_format.hh:260
blender::gpu::is_fetch_int_to_float
bool is_fetch_int_to_float(VertAttrType attr_type)
Definition
gpu_vertex_format.cc:255
blender::gpu::is_fetch_normalized
bool is_fetch_normalized(VertAttrType attr_type)
Definition
gpu_vertex_format.cc:238
blender::gpu::to_bytesize
int to_bytesize(const DataFormat format)
Definition
GPU_format.hh:244
blender::gpu::DataFormat
DataFormat
Definition
GPU_format.hh:135
blender::gpu::VertAttrType
VertAttrType
Definition
GPU_vertex_format.hh:22
blender::gpu::is_fetch_float
bool is_fetch_float(VertAttrType attr_type)
Definition
gpu_vertex_format.cc:268
GPUVertFormat
Definition
GPU_vertex_format.hh:176
Generated on
for Blender by
doxygen
1.15.0