Blender
V2.93
source
blender
gpu
intern
gpu_vertex_format_private.h
Go to the documentation of this file.
1
/*
2
* This program is free software; you can redistribute it and/or
3
* modify it under the terms of the GNU General Public License
4
* as published by the Free Software Foundation; either version 2
5
* of the License, or (at your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software Foundation,
14
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15
*
16
* The Original Code is Copyright (C) 2016 by Mike Erwin.
17
* All rights reserved.
18
*/
19
26
#pragma once
27
28
#ifdef __cplusplus
29
extern
"C"
{
30
#endif
31
32
struct
GPUVertFormat
;
33
34
void
VertexFormat_pack
(
struct
GPUVertFormat
*
format
);
35
uint
padding
(
uint
offset,
uint
alignment);
36
uint
vertex_buffer_size
(
const
struct
GPUVertFormat
*
format
,
uint
vertex_len);
37
38
#ifdef __cplusplus
39
}
40
#endif
uint
unsigned int uint
Definition:
BLI_sys_types.h:83
VertexFormat_pack
void VertexFormat_pack(struct GPUVertFormat *format)
Definition:
gpu_vertex_format.cc:351
vertex_buffer_size
uint vertex_buffer_size(const struct GPUVertFormat *format, uint vertex_len)
padding
uint padding(uint offset, uint alignment)
Definition:
gpu_vertex_format.cc:332
format
format
Definition:
logImageCore.h:47
GPUVertFormat
Definition:
GPU_vertex_format.h:88
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1