Blender V5.3
blender::GPUVertFormat Struct Reference

#include <GPU_vertex_format.hh>

Public Member Functions

void pack ()
uint attribute_add (StringRef name, gpu::VertAttrType type, size_t offset=-1)

Public Attributes

uint attr_len: 5
uint name_len: 6
uint stride: 11
uint packed: 1
uint name_offset: 8
uint deinterleaved: 1
GPUVertAttr attrs [GPU_VERT_ATTR_MAX_LEN]
char names [GPU_VERT_ATTR_NAMES_BUF_LEN]

Detailed Description

Definition at line 222 of file GPU_vertex_format.hh.

Member Function Documentation

◆ attribute_add()

◆ pack()

void blender::GPUVertFormat::pack ( )

Definition at line 354 of file gpu_vertex_format.cc.

References blender::BLI_assert(), packed, and blender::VertexFormat_pack().

Member Data Documentation

◆ attr_len

uint blender::GPUVertFormat::attr_len

◆ attrs

◆ deinterleaved

uint blender::GPUVertFormat::deinterleaved

Store each attribute in one contiguous buffer region.

Definition at line 234 of file GPU_vertex_format.hh.

◆ name_len

uint blender::GPUVertFormat::name_len

Total count of active vertex attribute names. (max GPU_VERT_FORMAT_MAX_NAMES)

Definition at line 226 of file GPU_vertex_format.hh.

Referenced by attribute_add().

◆ name_offset

uint blender::GPUVertFormat::name_offset

Current offset in names[].

Definition at line 232 of file GPU_vertex_format.hh.

◆ names

char blender::GPUVertFormat::names[GPU_VERT_ATTR_NAMES_BUF_LEN]

◆ packed

uint blender::GPUVertFormat::packed

◆ stride


The documentation for this struct was generated from the following files: