Blender V4.5
extract_mesh_vbo_attributes.cc File Reference
#include "BLI_array_utils.hh"
#include "BLI_string.h"
#include "BKE_attribute.hh"
#include "BKE_attribute_math.hh"
#include "BKE_mesh.hh"
#include "attribute_convert.hh"
#include "draw_attributes.hh"
#include "draw_subdivision.hh"
#include "extract_mesh.hh"
#include "GPU_vertex_buffer.hh"

Go to the source code of this file.

Classes

struct  blender::draw::BMeshAttributeLookup

Namespaces

namespace  blender
namespace  blender::draw

Functions

Extract Attributes
static void blender::draw::init_vbo_for_attribute (const MeshRenderData &mr, gpu::VertBuf &vbo, const StringRef name, const eCustomDataType type, bool build_on_device, uint32_t len)
template<typename T>
static void blender::draw::extract_data_mesh_mapped_corner (const Span< T > attribute, const Span< int > indices, gpu::VertBuf &vbo)
template<typename T>
static void blender::draw::extract_data_mesh_face (const OffsetIndices< int > faces, const Span< T > attribute, gpu::VertBuf &vbo)
template<typename T>
static void blender::draw::extract_data_bmesh_vert (const BMesh &bm, const int cd_offset, gpu::VertBuf &vbo)
template<typename T>
static void blender::draw::extract_data_bmesh_edge (const BMesh &bm, const int cd_offset, gpu::VertBuf &vbo)
template<typename T>
static void blender::draw::extract_data_bmesh_face (const BMesh &bm, const int cd_offset, gpu::VertBuf &vbo)
template<typename T>
static void blender::draw::extract_data_bmesh_loop (const BMesh &bm, const int cd_offset, gpu::VertBuf &vbo)
static BMeshAttributeLookup blender::draw::lookup_bmesh_attribute (const BMesh &bm, const StringRef name)
static void blender::draw::extract_attribute_data (const MeshRenderData &mr, const BMeshAttributeLookup &attr, gpu::VertBuf &vbo)
static void blender::draw::extract_attribute_data (const MeshRenderData &mr, const bke::GAttributeReader &attr, gpu::VertBuf &vbo)
gpu::VertBufPtr blender::draw::extract_attribute (const MeshRenderData &mr, StringRef name)
static gpu::VertBufPtr blender::draw::init_coarse_data (const eCustomDataType type, const int coarse_corners_num)
gpu::VertBufPtr blender::draw::extract_attribute_subdiv (const MeshRenderData &mr, const DRWSubdivCache &subdiv_cache, StringRef name)
gpu::VertBufPtr blender::draw::extract_attr_viewer (const MeshRenderData &mr)