|
Blender V5.3
|
#include "scene/attribute.h"#include "scene/hair.h"#include "scene/image.h"#include "scene/mesh.h"#include "scene/pointcloud.h"#include "util/guarded_allocator.h"#include "util/log.h"#include "util/string.h"#include "util/transform.h"Go to the source code of this file.
Functions | |
| static size_t | attribute_alloc_bytes (const size_t element_size, const size_t size) |
| static void | free_step_buffer (Attribute::Buffer &buf, const AttributeElement element, const size_t data_sizeof, const size_t size) |
| static char * | buffer_for_write (Attribute::Buffer &buf, const size_t element_size, const size_t size) |
| static bool | standard_type_element (const Geometry *geometry, const AttributeStandard std, TypeDesc &type, AttributeElement &element) |
|
static |
Definition at line 66 of file attribute.cpp.
References attribute_alloc_bytes(), and size().
Referenced by Attribute::add_motion(), attribute_alloc_bytes(), buffer_for_write(), free_step_buffer(), and Attribute::resize().
|
static |
Definition at line 240 of file attribute.cpp.
References GuardedAllocator< T >::allocate(), attribute_alloc_bytes(), buffer_for_write(), Attribute::Buffer::data, g_implicit_sharing_user_remove_fn, Attribute::Buffer::sharing_info, and size().
Referenced by buffer_for_write().
|
static |
Definition at line 74 of file attribute.cpp.
References ATTR_ELEMENT_VOXEL, attribute_alloc_bytes(), Attribute::Buffer::data, GuardedAllocator< T >::deallocate(), free_step_buffer(), g_implicit_sharing_user_remove_fn, GuardedAllocator< T >::GuardedAllocator(), image, Attribute::Buffer::sharing_info, and size().
Referenced by Attribute::add_motion(), Attribute::free_data(), free_step_buffer(), Attribute::remove_motion(), Attribute::set_data_from(), and Attribute::set_motion_step_shared().
|
static |
Definition at line 762 of file attribute.cpp.
References ATTR_ELEMENT_CORNER, ATTR_ELEMENT_CORNER_BYTE, ATTR_ELEMENT_CORNER_NORMAL, ATTR_ELEMENT_CURVE, ATTR_ELEMENT_CURVE_KEY, ATTR_ELEMENT_CURVE_KEY_NORMAL, ATTR_ELEMENT_FACE, ATTR_ELEMENT_MESH, ATTR_ELEMENT_VERTEX, ATTR_ELEMENT_VERTEX_NORMAL, ATTR_ELEMENT_VOXEL, ATTR_STD_CORNER_NORMAL, ATTR_STD_CURVE_INTERCEPT, ATTR_STD_CURVE_LENGTH, ATTR_STD_CURVE_RANDOM, ATTR_STD_GENERATED, ATTR_STD_GENERATED_TRANSFORM, ATTR_STD_GSPLAT_RADIANCE, ATTR_STD_GSPLAT_RADIANCE_BASE, ATTR_STD_GSPLAT_RADIANCE_SPHERICAL_HARMONICS_REST, ATTR_STD_GSPLAT_ROTATION, ATTR_STD_GSPLAT_SCALE, ATTR_STD_NORMAL_UNDISPLACED, ATTR_STD_POINT_RANDOM, ATTR_STD_POINTINESS, ATTR_STD_POSITION, ATTR_STD_POSITION_UNDEFORMED, ATTR_STD_POSITION_UNDISPLACED, ATTR_STD_PTEX_FACE_ID, ATTR_STD_PTEX_UV, ATTR_STD_RADIUS, ATTR_STD_RANDOM_PER_ISLAND, ATTR_STD_SHADOW_TRANSPARENCY, ATTR_STD_UV, ATTR_STD_UV_TANGENT, ATTR_STD_UV_TANGENT_SIGN, ATTR_STD_UV_TANGENT_SIGN_UNDISPLACED, ATTR_STD_UV_TANGENT_UNDISPLACED, ATTR_STD_VERTEX_COLOR, ATTR_STD_VERTEX_NORMAL, ATTR_STD_VOLUME_COLOR, ATTR_STD_VOLUME_DENSITY, ATTR_STD_VOLUME_FLAME, ATTR_STD_VOLUME_HEAT, ATTR_STD_VOLUME_TEMPERATURE, ATTR_STD_VOLUME_VELOCITY, ATTR_STD_VOLUME_VELOCITY_X, ATTR_STD_VOLUME_VELOCITY_Y, ATTR_STD_VOLUME_VELOCITY_Z, Geometry::is_hair(), Geometry::is_mesh(), Geometry::is_pointcloud(), Geometry::is_volume(), and standard_type_element().
Referenced by AttributeSet::add(), AttributeSet::add_shared(), Attribute::matches_standard(), and standard_type_element().