Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/scene/attribute.h
| Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
| /* AttrKernelDataType. | /* AttrKernelDataType. | ||||
| * | * | ||||
| * The data type of the device arrays storing the attribute's data. Those data types are different | * The data type of the device arrays storing the attribute's data. Those data types are different | ||||
| * than the ones for attributes as some attribute types are stored in the same array, e.g. Point, | * than the ones for attributes as some attribute types are stored in the same array, e.g. Point, | ||||
| * Vector, and Transform are all stored as float3 in the kernel. | * Vector, and Transform are all stored as float3 in the kernel. | ||||
| * | * | ||||
| * The values of this enumeration are also used as flags to detect changes in AttributeSet. */ | * The values of this enumeration are also used as flags to detect changes in AttributeSet. */ | ||||
| enum AttrKernelDataType { | enum AttrKernelDataType { FLOAT = 0, FLOAT2 = 1, FLOAT3 = 2, FLOAT4 = 3, UCHAR4 = 4, NUM = 5 }; | ||||
| FLOAT = 0, | |||||
| FLOAT2 = 1, | |||||
| FLOAT3 = 2, | |||||
| UCHAR4 = 3, | |||||
| }; | |||||
| /* Attribute | /* Attribute | ||||
| * | * | ||||
| * Arbitrary data layers on meshes. | * Arbitrary data layers on meshes. | ||||
| * Supported types: Float, Color, Vector, Normal, Point */ | * Supported types: Float, Color, Vector, Normal, Point */ | ||||
| class Attribute { | class Attribute { | ||||
| public: | public: | ||||
| ▲ Show 20 Lines • Show All 224 Lines • Show Last 20 Lines | |||||