Blender V5.3
gpu_vertex_format.cc File Reference
#include "GPU_vertex_format.hh"
#include "BLI_assert.hh"
#include "BLI_math_base_c.hh"
#include "GPU_capabilities.hh"
#include "gpu_shader_create_info.hh"
#include "gpu_shader_private.hh"
#include "gpu_vertex_format_private.hh"
#include <cstddef>
#include <cstring>
#include "BLI_hash_mm2a.hh"
#include "BLI_string.hh"
#include "BLI_utildefines.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::gpu

Macros

#define PACK_DEBUG   0

Functions

static VertAttrType blender::gpu::vertex_format_combine (GPUVertCompType component_type, GPUVertFetchMode fetch_mode, uint32_t component_len)
bool blender::gpu::is_fetch_normalized (VertAttrType attr_type)
bool blender::gpu::is_fetch_float (VertAttrType attr_type)
void blender::GPU_vertformat_clear (GPUVertFormat *)
void blender::GPU_vertformat_copy (GPUVertFormat *dest, const GPUVertFormat &src)
uint blender::vertex_buffer_size (const GPUVertFormat *format, uint vertex_len)
static uchar blender::copy_attr_name (GPUVertFormat *format, const StringRef name)
uint blender::GPU_vertformat_attr_add_legacy (GPUVertFormat *, StringRef name, GPUVertCompType, uint comp_len, GPUVertFetchMode)
uint blender::GPU_vertformat_attr_add (GPUVertFormat *format, StringRef name, gpu::VertAttrType type)
void blender::GPU_vertformat_alias_add (GPUVertFormat *, StringRef alias)
GPUVertFormat blender::GPU_vertformat_from_attribute (StringRef name, gpu::VertAttrType type)
void blender::GPU_vertformat_multiload_enable (GPUVertFormat *format, int load_count)
int blender::GPU_vertformat_attr_id_get (const GPUVertFormat *, StringRef name)
void blender::GPU_vertformat_attr_rename (GPUVertFormat *format, int attr, const char *new_name)
static void blender::safe_bytes (char out[11], const char data[8])
void blender::GPU_vertformat_safe_attr_name (StringRef attr_name, char *r_safe_name, uint max_len)
void blender::GPU_vertformat_deinterleave (GPUVertFormat *format)
uint blender::padding (uint offset, uint alignment)
void blender::VertexFormat_pack (GPUVertFormat *format)
static uint blender::component_size_get (const Type gpu_type)
static void blender::recommended_fetch_mode_and_comp_type (Type gpu_type, GPUVertCompType *r_comp_type, GPUVertFetchMode *r_fetch_mode)
void blender::GPU_vertformat_from_shader (GPUVertFormat *format, const gpu::Shader *shader)

Detailed Description

GPU vertex format

Definition in file gpu_vertex_format.cc.

Macro Definition Documentation

◆ PACK_DEBUG

#define PACK_DEBUG   0

Definition at line 29 of file gpu_vertex_format.cc.