Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/util/util_types.h
| Show First 20 Lines • Show All 148 Lines • ▼ Show 20 Lines | enum InterpolationType { | ||||
| INTERPOLATION_LINEAR = 0, | INTERPOLATION_LINEAR = 0, | ||||
| INTERPOLATION_CLOSEST = 1, | INTERPOLATION_CLOSEST = 1, | ||||
| INTERPOLATION_CUBIC = 2, | INTERPOLATION_CUBIC = 2, | ||||
| INTERPOLATION_SMART = 3, | INTERPOLATION_SMART = 3, | ||||
| INTERPOLATION_NUM_TYPES, | INTERPOLATION_NUM_TYPES, | ||||
| }; | }; | ||||
| /* Texture types | |||||
| * Since we store the type in the lower bits of a flat index, | |||||
| * the shift and bit mask constant below need to be kept in sync. | |||||
| */ | |||||
| enum ImageDataType { | |||||
| IMAGE_DATA_TYPE_FLOAT4 = 0, | |||||
| IMAGE_DATA_TYPE_BYTE4 = 1, | |||||
| IMAGE_DATA_TYPE_HALF4 = 2, | |||||
| IMAGE_DATA_TYPE_FLOAT = 3, | |||||
| IMAGE_DATA_TYPE_BYTE = 4, | |||||
| IMAGE_DATA_TYPE_HALF = 5, | |||||
| IMAGE_DATA_NUM_TYPES | |||||
| }; | |||||
| #define IMAGE_DATA_TYPE_SHIFT 3 | |||||
| #define IMAGE_DATA_TYPE_MASK 0x7 | |||||
| /* Extension types for textures. | /* Extension types for textures. | ||||
| * | * | ||||
| * Defines how the image is extrapolated past its original bounds. | * Defines how the image is extrapolated past its original bounds. | ||||
| */ | */ | ||||
| enum ExtensionType { | enum ExtensionType { | ||||
| /* Cause the image to repeat horizontally and vertically. */ | /* Cause the image to repeat horizontally and vertically. */ | ||||
| EXTENSION_REPEAT = 0, | EXTENSION_REPEAT = 0, | ||||
| /* Extend by repeating edge pixels of the image. */ | /* Extend by repeating edge pixels of the image. */ | ||||
| ▲ Show 20 Lines • Show All 106 Lines • Show Last 20 Lines | |||||