2023-05-31 16:19:06 +02:00
|
|
|
/* SPDX-FileCopyrightText: 2016 by Mike Erwin. All rights reserved.
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
2017-04-15 13:10:14 -04:00
|
|
|
|
2019-02-18 08:08:12 +11:00
|
|
|
/** \file
|
|
|
|
|
* \ingroup gpu
|
2018-07-17 14:46:44 +02:00
|
|
|
*
|
2018-07-18 00:12:21 +02:00
|
|
|
* GPU vertex format
|
2018-07-17 14:46:44 +02:00
|
|
|
*/
|
2017-04-15 13:10:14 -04:00
|
|
|
|
2018-07-18 00:12:21 +02:00
|
|
|
#pragma once
|
2017-04-15 13:10:14 -04:00
|
|
|
|
2020-07-25 18:10:43 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
2020-09-06 23:45:51 +02:00
|
|
|
struct GPUVertFormat;
|
|
|
|
|
|
|
|
|
|
void VertexFormat_pack(struct GPUVertFormat *format);
|
2022-09-01 22:14:18 +02:00
|
|
|
void VertexFormat_texture_buffer_pack(struct GPUVertFormat *format);
|
2018-07-17 14:46:44 +02:00
|
|
|
uint padding(uint offset, uint alignment);
|
2020-09-06 23:45:51 +02:00
|
|
|
uint vertex_buffer_size(const struct GPUVertFormat *format, uint vertex_len);
|
2018-07-17 14:46:44 +02:00
|
|
|
|
2020-07-25 18:10:43 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|