63 const void *
data =
nullptr;
100 void resize(
const size_t num_elements);
130 template<
typename T =
void>
const T *
data(
const int step = 0)
const
132 if constexpr (!std::is_same_v<T, void>) {
139 return static_cast<const T *
>(
motion[
step - 1].data);
143 if constexpr (!std::is_same_v<T, void>) {
146 return reinterpret_cast<T *
>(data_for_write_buffer(
step));
159 const int center = (num_time_steps - 1) / 2;
162 template<
typename T =
void>
179 char *data_for_write_buffer(
const int step);
188 static bool same_storage(
const TypeDesc a,
const TypeDesc
b);
208 uint32_t modified_flag;
228 void remove(ustring name);
246 void remove(list<Attribute>::iterator it);
249 void clear(
bool preserve_voxel_data =
false);
266 void tag_modified(
const Attribute &attr);
302 void add(ustring name);
312 bool find(ustring name)
const;
vector< AttributeRequest > requests
bool find(ustring name) const
void add_name_or_standard(ustring name)
bool modified(const AttributeRequestSet &other) const
AttributeRequest(ustring name_)
void update(AttributeSet &&new_attributes)
AttributeSet(AttributeSet &&)=default
Attribute & copy(const Attribute &attr)
list< Attribute > attributes
Attribute * find(ustring name) const
Attribute * find_matching(const Attribute &other)
bool modified(AttrKernelDataType kernel_type) const
Attribute * add(ustring name, const TypeDesc type, AttributeElement element)
void remove(ustring name)
AttributeSet(Geometry *geometry, AttributePrimitive prim)
void clear(bool preserve_voxel_data=false)
Attribute * add_shared(ustring name, const TypeDesc type, AttributeElement element, const void *data, int size, ImplicitSharingInfo sharing_info)
Attribute * add_from(Attribute &&other)
static AttributeStandard name_standard(ustring name)
ImageHandle & data_voxel_for_write()
Attribute(ustring name, const TypeDesc type, AttributeElement element, Geometry *geom, AttributePrimitive prim)
void take_motion_from(Attribute &other)
const T * data(const int step=0) const
void set(ustring name, const TypeDesc type, AttributeElement element)
void resize(Geometry *geom, AttributePrimitive prim)
static AttrKernelDataType kernel_type(const Attribute &attr)
T * data_for_write(const int step=0)
void set_motion_step_shared(int step, const void *data, int new_size, ImplicitSharingInfo sharing_info)
static size_t element_size(Geometry *geom, AttributeElement element, AttributePrimitive prim)
const ImageHandle & data_voxel() const
Attribute(const Attribute &other)=delete
static ustring osl_name(AttributeStandard std)
static AttributeStandard name_volume_standard(ustring name)
Attribute & operator=(Attribute &&other)=delete
void add_motion(const Geometry *geom)
void get_uv_tiles(Geometry *geom, AttributePrimitive prim, unordered_set< int > &tiles) const
void set_data_from(Attribute &&other)
Attribute & operator=(const Attribute &other)=delete
void zero_data(void *dst)
static const char * standard_name(AttributeStandard std)
size_t buffer_size(Geometry *geom, AttributePrimitive prim) const
int num_motion_steps() const
size_t data_sizeof() const
static bool same_storage(const TypeDesc a, const TypeDesc b)
bool matches_standard(const Geometry *geometry, AttributeStandard std) const
const T * data_at_time_step(const int step, const int num_time_steps) const
int time_step_to_attr_step(const int step, const int num_time_steps) const
#define CCL_NAMESPACE_END
#define assert(assertion)
VecBase< float, D > step(VecOp< float, D >, VecOp< float, D >) RET
const void * ImplicitSharingInfo
ccl_gpu_kernel_postfix ccl_global KernelWorkTile * tiles
@ SPHERICAL_HARMONICS_REST
ImplicitSharingInfo sharing_info