2022-02-11 09:07:11 +11:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
* Copyright 2016 by Mike Erwin. All rights reserved. */
|
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);
|
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
|