25 if (
format.attr_len == 0) {
57 }
while ((l_iter = l_iter->
next) != l_first);
67 for (
int ml_index = mp->
loopstart; ml_index < ml_index_end; ml_index += 1) {
68 const MLoop *ml = &mloop[ml_index];
99 if (
format.attr_len == 0) {
150 if (
format.attr_len == 0) {
162 const int UNUSED(f_index),
180 }
while ((l_iter = l_iter->
next) != l_first);
190 for (
int ml_index = mp->
loopstart; ml_index < ml_index_end; ml_index += 1) {
191 const MLoop *ml = &mloop[ml_index];
MINLINE void normal_float_to_short_v3(short r[3], const float n[3])
struct GPUVertBuf GPUVertBuf
void GPU_vertbuf_data_alloc(GPUVertBuf *, uint v_len)
#define GPU_vertbuf_init_with_format(verts, format)
void * GPU_vertbuf_get_data(const GPUVertBuf *verts)
void GPU_vertbuf_init_build_on_device(GPUVertBuf *verts, GPUVertFormat *format, uint v_len)
#define BM_FACE_FIRST_LOOP(p)
#define BM_elem_index_get(ele)
#define BM_elem_flag_test(ele, hflag)
void draw_subdiv_build_lnor_buffer(const DRWSubdivCache *cache, GPUVertBuf *pos_nor, GPUVertBuf *lnor)
ccl_global float * buffer
constexpr MeshExtract create_extractor_lnor_hq()
static void extract_lnor_hq_iter_poly_bm(const MeshRenderData *mr, const BMFace *f, const int UNUSED(f_index), void *data)
static void extract_lnor_init_subdiv(const DRWSubdivCache *subdiv_cache, const MeshRenderData *UNUSED(mr), MeshBatchCache *cache, void *buffer, void *UNUSED(data))
static void extract_lnor_iter_poly_bm(const MeshRenderData *mr, const BMFace *f, const int UNUSED(f_index), void *data)
static void extract_lnor_iter_poly_mesh(const MeshRenderData *mr, const MPoly *mp, const int mp_index, void *data)
constexpr MeshExtract create_extractor_lnor()
static void extract_lnor_init(const MeshRenderData *mr, MeshBatchCache *UNUSED(cache), void *buf, void *tls_data)
static void extract_lnor_hq_iter_poly_mesh(const MeshRenderData *mr, const MPoly *mp, const int mp_index, void *data)
static void extract_lnor_hq_init(const MeshRenderData *mr, MeshBatchCache *UNUSED(cache), void *buf, void *tls_data)
static GPUVertFormat * get_subdiv_lnor_format()
struct MeshBufferList::@272 vbo
eMRExtractType extract_type
const float(* poly_normals)[3]
const float(* vert_normals)[3]