Blender V4.5
GPUVertFormat Struct Reference

#include <GPU_vertex_format.hh>

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 176 of file GPU_vertex_format.hh.

Member Data Documentation

◆ attr_len

uint GPUVertFormat::attr_len

0 to 16 (GPU_VERT_ATTR_MAX_LEN).

Definition at line 178 of file GPU_vertex_format.hh.

Referenced by blender::gpu::MTLImmediate::end(), immBindShader(), and immEndVertex().

◆ attrs

◆ deinterleaved

uint GPUVertFormat::deinterleaved

Store each attribute in one contiguous buffer region.

Definition at line 188 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 180 of file GPU_vertex_format.hh.

◆ name_offset

uint GPUVertFormat::name_offset

Current offset in names[].

Definition at line 186 of file GPU_vertex_format.hh.

◆ names

◆ packed

uint GPUVertFormat::packed

Has the format been packed.

Definition at line 184 of file GPU_vertex_format.hh.

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

◆ stride


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