Blender V5.0
attribute.h File Reference
#include "kernel/globals.h"
#include "kernel/types.h"
#include "kernel/util/colorspace.h"
#include "util/color.h"

Go to the source code of this file.

Functions

CCL_NAMESPACE_BEGIN ccl_device_inline AttributeDescriptor attribute_not_found ()
ccl_device_inline uint object_attribute_map_offset (KernelGlobals kg, const int object)
ccl_device_inline AttributeDescriptor find_attribute (KernelGlobals kg, const int object, const int prim, const uint64_t id)
ccl_device_inline AttributeDescriptor find_attribute (KernelGlobals kg, const ccl_private ShaderData *sd, const uint64_t id)
template<typename T>
ccl_device_inline T attribute_data_fetch (KernelGlobals kg, int offset)
ccl_device_template_spec float attribute_data_fetch (KernelGlobals kg, int offset)
template<typename T>
ccl_device_inline T attribute_data_fetch_bytecolor (KernelGlobals, int)
ccl_device_template_spec float4 attribute_data_fetch_bytecolor (KernelGlobals kg, int offset)
ccl_device Transform primitive_attribute_matrix (KernelGlobals kg, const AttributeDescriptor desc)

Function Documentation

◆ attribute_data_fetch() [1/2]

ccl_device_template_spec float attribute_data_fetch ( KernelGlobals kg,
int offset )

Definition at line 91 of file kernel/geom/attribute.h.

References ccl_device_template_spec, and kernel_data_fetch.

◆ attribute_data_fetch() [2/2]

template<typename T>
ccl_device_template_spec Transform attribute_data_fetch ( KernelGlobals kg,
int offset )

◆ attribute_data_fetch_bytecolor() [1/2]

◆ attribute_data_fetch_bytecolor() [2/2]

template<typename T>
ccl_device_inline T attribute_data_fetch_bytecolor ( KernelGlobals ,
int  )

Definition at line 119 of file kernel/geom/attribute.h.

References ccl_device_inline, kernel_assert, make_zero(), and T.

Referenced by triangle_attribute().

◆ attribute_not_found()

◆ find_attribute() [1/2]

ccl_device_inline AttributeDescriptor find_attribute ( KernelGlobals kg,
const ccl_private ShaderData * sd,
const uint64_t id )

Definition at line 81 of file kernel/geom/attribute.h.

References ccl_device_inline, ccl_private, and find_attribute().

◆ find_attribute() [2/2]

◆ object_attribute_map_offset()

ccl_device_inline uint object_attribute_map_offset ( KernelGlobals kg,
const int object )

Definition at line 32 of file kernel/geom/attribute.h.

References ccl_device_inline, and kernel_data_fetch.

Referenced by find_attribute().

◆ primitive_attribute_matrix()

ccl_device Transform primitive_attribute_matrix ( KernelGlobals kg,
const AttributeDescriptor desc )