Removes some other things like: - `TRUST_NO_ONE` which was the same as `#ifndef NDEBUG`. - Replace `reinterpret_cast` by `unwrap` Pull Request: https://projects.blender.org/blender/blender/pulls/129631
21 lines
468 B
C++
21 lines
468 B
C++
/* SPDX-FileCopyrightText: 2016 by Mike Erwin. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup gpu
|
|
*
|
|
* GPU vertex format
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "GPU_vertex_buffer.hh"
|
|
|
|
struct GPUVertFormat;
|
|
|
|
void VertexFormat_pack(GPUVertFormat *format);
|
|
void VertexFormat_texture_buffer_pack(GPUVertFormat *format);
|
|
uint padding(uint offset, uint alignment);
|
|
uint vertex_buffer_size(const GPUVertFormat *format, uint vertex_len);
|