Blender V5.0
GPUVertFormat Struct Reference

#include <GPU_vertex_format.hh>

Public Member Functions

void pack ()
uint attribute_add (blender::StringRef name, blender::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 217 of file GPU_vertex_format.hh.

Member Function Documentation

◆ attribute_add()

◆ pack()

void GPUVertFormat::pack ( )

Definition at line 353 of file gpu_vertex_format.cc.

References BLI_assert, packed, and VertexFormat_pack().

Member Data Documentation

◆ attr_len

uint GPUVertFormat::attr_len

0 to 16 (GPU_VERT_ATTR_MAX_LEN).

Definition at line 219 of file GPU_vertex_format.hh.

Referenced by attribute_add().

◆ attrs

GPUVertAttr GPUVertFormat::attrs[GPU_VERT_ATTR_MAX_LEN]

Definition at line 231 of file GPU_vertex_format.hh.

Referenced by attribute_add(), and pygpu_vertbuf_fill_impl().

◆ deinterleaved

uint GPUVertFormat::deinterleaved

Store each attribute in one contiguous buffer region.

Definition at line 229 of file GPU_vertex_format.hh.

◆ name_len

uint GPUVertFormat::name_len

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

Definition at line 221 of file GPU_vertex_format.hh.

Referenced by attribute_add().

◆ name_offset

uint GPUVertFormat::name_offset

Current offset in names[].

Definition at line 227 of file GPU_vertex_format.hh.

◆ names

◆ packed

uint GPUVertFormat::packed

Has the format been packed.

Definition at line 225 of file GPU_vertex_format.hh.

Referenced by attribute_add(), blender::gpu::VertBuf::init(), pack(), and blender::gpu::VertBuf::size_alloc_get().

◆ stride

uint GPUVertFormat::stride

Stride in bytes, 1 to 1024.

Definition at line 223 of file GPU_vertex_format.hh.

Referenced by blender::gpu::VertBuf::size_alloc_get(), and blender::gpu::VertBuf::size_used_get().


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