4 #ifndef __ATTRIBUTE_H__
5 #define __ATTRIBUTE_H__
68 void resize(
size_t num_elements);
96 return (
float *)
data();
138 return (
const float *)
data();
154 void add(
const float &f);
190 void remove(ustring name);
201 void remove(list<Attribute>::iterator it);
203 void resize(
bool reserve_only =
false);
204 void clear(
bool preserve_voxel_data =
false);
221 void tag_modified(
const Attribute &attr);
254 void add(ustring name);
259 bool find(ustring name);
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
in reality light always falls off quadratically Particle Retrieve the data of the particle that spawned the object for example to give variation to multiple instances of an object Point Retrieve information about points in a point cloud Retrieve the edges of an object as it appears to Cycles topology will always appear triangulated Convert a blackbody temperature to an RGB value Normal Generate a perturbed normal from an RGB normal map image Typically used for faking highly detailed surfaces Generate an OSL shader from a file or text data block Image Sample an image file as a texture Sky Generate a procedural sky texture Noise Generate fractal Perlin noise Wave Generate procedural bands or rings with noise Voronoi Generate Worley noise based on the distance to random points Typically used to generate textures such as or biological cells Brick Generate a procedural texture producing bricks Texture Retrieve multiple types of texture coordinates nTypically used as inputs for texture nodes Vector Convert a or normal between and object coordinate space Combine Create a color from its and value channels Color Retrieve a color attribute
ATTR_WARN_UNUSED_RESULT const void * element
vector< AttributeRequest > requests
bool modified(const AttributeRequestSet &other)
void add_standard(ustring name)
AttributeRequest(ustring name_)
AttributeDescriptor subd_desc
Attribute * add(ustring name, TypeDesc type, AttributeElement element)
void update(AttributeSet &&new_attributes)
AttributeSet(AttributeSet &&)=default
list< Attribute > attributes
Attribute * find(ustring name) const
Attribute * find_matching(const Attribute &other)
bool modified(AttrKernelDataType kernel_type) const
void remove(ustring name)
AttributeSet(Geometry *geometry, AttributePrimitive prim)
void resize(bool reserve_only=false)
void clear(bool preserve_voxel_data=false)
ImageHandle & data_voxel()
const ImageHandle & data_voxel() const
static bool same_storage(TypeDesc a, TypeDesc b)
void add_with_weight(void *dst, void *src, float weight)
static AttrKernelDataType kernel_type(const Attribute &attr)
Attribute & operator=(const Attribute &other)=delete
const float4 * data_float4() const
void set(ustring name, TypeDesc type, AttributeElement element)
const float2 * data_float2() const
static AttributeStandard name_standard(const char *name)
Attribute(const Attribute &other)=delete
Transform * data_transform()
const float3 * data_float3() const
void resize(Geometry *geom, AttributePrimitive prim, bool reserve_only)
size_t element_size(Geometry *geom, AttributePrimitive prim) const
void get_uv_tiles(Geometry *geom, AttributePrimitive prim, unordered_set< int > &tiles) const
void set_data_from(Attribute &&other)
void zero_data(void *dst)
Attribute(ustring name, TypeDesc type, AttributeElement element, Geometry *geom, AttributePrimitive prim)
static const char * standard_name(AttributeStandard std)
Attribute(Attribute &&other)=default
size_t buffer_size(Geometry *geom, AttributePrimitive prim) const
const Transform * data_transform() const
size_t data_sizeof() const
const float * data_float() const
const char * data() const
#define CCL_NAMESPACE_END
SyclQueue void void * src
ccl_gpu_kernel_postfix ccl_global KernelWorkTile * tiles
static const pxr::TfToken b("b", pxr::TfToken::Immortal)