Blender V4.3
extract_mesh_vbo_lnor.cc File Reference
#include "BLI_array_utils.hh"
#include "extract_mesh.hh"
#include "draw_subdivision.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 
namespace  blender::draw
 

Functions

template<typename GPUType >
static void blender::draw::convert_normals_impl (const Span< float3 > src, MutableSpan< GPUType > dst)
 
template<>
void blender::draw::convert_normals (const Span< float3 > src, MutableSpan< GPUPackedNormal > normals)
 
template<>
void blender::draw::convert_normals (const Span< float3 > src, MutableSpan< short4 > normals)
 
template<typename GPUType >
static void blender::draw::extract_vert_normals (const Span< int > corner_verts, const Span< float3 > vert_normals, MutableSpan< GPUType > normals)
 
template<typename GPUType >
static void blender::draw::extract_face_normals (const MeshRenderData &mr, MutableSpan< GPUType > normals)
 
template<typename GPUType >
static void blender::draw::extract_normals_mesh (const MeshRenderData &mr, MutableSpan< GPUType > normals)
 
template<typename GPUType >
static void blender::draw::extract_paint_overlay_flags (const MeshRenderData &mr, MutableSpan< GPUType > normals)
 
template<typename GPUType >
static void blender::draw::extract_normals_bm (const MeshRenderData &mr, MutableSpan< GPUType > normals)
 
void blender::draw::extract_normals (const MeshRenderData &mr, bool use_hq, gpu::VertBuf &vbo)
 
static const GPUVertFormatblender::draw::get_subdiv_lnor_format ()
 
void blender::draw::extract_normals_subdiv (const MeshRenderData &mr, const DRWSubdivCache &subdiv_cache, gpu::VertBuf &pos_nor, gpu::VertBuf &lnor)