|
Blender V5.0
|
#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] |
Definition at line 217 of file GPU_vertex_format.hh.
| uint GPUVertFormat::attribute_add | ( | blender::StringRef | name, |
| blender::gpu::VertAttrType | type, | ||
| size_t | offset = -1 ) |
Definition at line 395 of file gpu_vertex_format.cc.
References attr_id, attr_len, attrs, BLI_assert, copy_attr_name(), GPUVertAttr::Type::format, GPU_VERT_ATTR_MAX_LEN, GPU_VERT_FORMAT_MAX_NAMES, blender::gpu::Invalid, name, GPUVertAttr::name_len, name_len, GPUVertAttr::names, GPUVertAttr::offset, packed, and GPUVertAttr::type.
| void GPUVertFormat::pack | ( | ) |
Definition at line 353 of file gpu_vertex_format.cc.
References BLI_assert, packed, and VertexFormat_pack().
| 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().
| 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().
| uint GPUVertFormat::deinterleaved |
Store each attribute in one contiguous buffer region.
Definition at line 229 of file GPU_vertex_format.hh.
| 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().
| uint GPUVertFormat::name_offset |
Current offset in names[].
Definition at line 227 of file GPU_vertex_format.hh.
| char GPUVertFormat::names[GPU_VERT_ATTR_NAMES_BUF_LEN] |
Definition at line 232 of file GPU_vertex_format.hh.
Referenced by blender::eevee::VelocityModule::VelocityGeometryData::pos_buf_get().
| 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().
| 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().