Blender
V3.3
|
#include "draw_attributes.h"
Go to the source code of this file.
Functions | |
static bool | drw_attributes_has_request (const DRW_Attributes *requests, DRW_AttributeRequest req) |
static void | drw_attributes_merge_requests (const DRW_Attributes *src_requests, DRW_Attributes *dst_requests) |
void | drw_attributes_clear (DRW_Attributes *attributes) |
void | drw_attributes_merge (DRW_Attributes *dst, const DRW_Attributes *src, ThreadMutex *render_mutex) |
bool | drw_attributes_overlap (const DRW_Attributes *a, const DRW_Attributes *b) |
DRW_AttributeRequest * | drw_attributes_add_request (DRW_Attributes *attrs, const char *name, const eCustomDataType type, const int layer_index, const eAttrDomain domain) |
bool | drw_custom_data_match_attribute (const CustomData *custom_data, const char *name, int *r_layer_index, eCustomDataType *r_type) |
DRW_AttributeRequest* drw_attributes_add_request | ( | DRW_Attributes * | attrs, |
const char * | name, | ||
const eCustomDataType | type, | ||
const int | layer_index, | ||
const eAttrDomain | domain | ||
) |
Definition at line 67 of file draw_attributes.cc.
References DRW_AttributeRequest::attribute_name, BLI_strncpy(), DRW_AttributeRequest::cd_type, DRW_AttributeRequest::domain, GPU_MAX_ATTR, DRW_AttributeRequest::layer_index, DRW_Attributes::num_requests, DRW_Attributes::requests, and type.
Referenced by curves_ensure_attributes(), mesh_cd_calc_used_gpu_layers(), request_active_and_default_color_attributes(), and request_attribute().
void drw_attributes_clear | ( | DRW_Attributes * | attributes | ) |
Definition at line 42 of file draw_attributes.cc.
Referenced by curves_discard_attributes(), curves_ensure_attributes(), DRW_curves_batch_cache_free_old(), DRW_mesh_batch_cache_create_requested(), DRW_mesh_batch_cache_free_old(), and DRW_mesh_batch_cache_get_surface_shaded().
|
static |
Definition at line 7 of file draw_attributes.cc.
References DRW_AttributeRequest::cd_type, DRW_AttributeRequest::domain, DRW_AttributeRequest::layer_index, DRW_Attributes::num_requests, and DRW_Attributes::requests.
Referenced by drw_attributes_merge_requests(), and drw_attributes_overlap().
void drw_attributes_merge | ( | DRW_Attributes * | dst, |
const DRW_Attributes * | src, | ||
ThreadMutex * | render_mutex | ||
) |
Definition at line 47 of file draw_attributes.cc.
References BLI_mutex_lock(), BLI_mutex_unlock(), drw_attributes_merge_requests(), and src.
Referenced by curves_ensure_attributes(), DRW_mesh_batch_cache_create_requested(), DRW_mesh_batch_cache_get_surface_sculpt(), DRW_mesh_batch_cache_get_surface_shaded(), DRW_mesh_batch_cache_get_surface_vertpaint(), and request_attribute().
|
static |
Definition at line 25 of file draw_attributes.cc.
References drw_attributes_has_request(), GPU_MAX_ATTR, DRW_Attributes::num_requests, and DRW_Attributes::requests.
Referenced by drw_attributes_merge().
bool drw_attributes_overlap | ( | const DRW_Attributes * | a, |
const DRW_Attributes * | b | ||
) |
Definition at line 56 of file draw_attributes.cc.
References Freestyle::a, usdtokens::b(), and drw_attributes_has_request().
Referenced by curves_ensure_attributes(), DRW_curves_batch_cache_free_old(), DRW_mesh_batch_cache_create_requested(), and DRW_mesh_batch_cache_free_old().
bool drw_custom_data_match_attribute | ( | const CustomData * | custom_data, |
const char * | name, | ||
int * | r_layer_index, | ||
eCustomDataType * | r_type | ||
) |
Definition at line 86 of file draw_attributes.cc.
References ARRAY_SIZE, CD_PROP_BOOL, CD_PROP_BYTE_COLOR, CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT2, CD_PROP_FLOAT3, CD_PROP_INT32, CD_PROP_INT8, and CustomData_get_named_layer().
Referenced by curves_ensure_attributes(), mesh_cd_calc_used_gpu_layers(), and request_active_and_default_color_attributes().