Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/util/util_texture.h
| Show All 33 Lines | |||||
| /* Interpolation types for textures | /* Interpolation types for textures | ||||
| * cuda also use texture space to store other objects */ | * cuda also use texture space to store other objects */ | ||||
| typedef enum InterpolationType { | typedef enum InterpolationType { | ||||
| INTERPOLATION_NONE = -1, | INTERPOLATION_NONE = -1, | ||||
| 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, | ||||
| } InterpolationType; | } InterpolationType; | ||||
| /* Texture types | /* Texture types | ||||
| * Since we store the type in the lower bits of a flat index, | * 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. */ | * the shift and bit mask constant below need to be kept in sync. */ | ||||
| typedef enum ImageDataType { | typedef enum ImageDataType { | ||||
| IMAGE_DATA_TYPE_FLOAT4 = 0, | IMAGE_DATA_TYPE_FLOAT4 = 0, | ||||
| Show All 37 Lines | typedef enum ExtensionType { | ||||
| EXTENSION_NUM_TYPES, | EXTENSION_NUM_TYPES, | ||||
| } ExtensionType; | } ExtensionType; | ||||
| typedef struct TextureInfo { | typedef struct TextureInfo { | ||||
| /* Pointer, offset or texture depending on device. */ | /* Pointer, offset or texture depending on device. */ | ||||
| uint64_t data; | uint64_t data; | ||||
| /* Buffer number for OpenCL. */ | /* Buffer number for OpenCL. */ | ||||
| uint cl_buffer; | uint cl_buffer; | ||||
| /* Interpolation and extension type. */ | /* Interpolation, extension and compression type. */ | ||||
| uint interpolation, extension; | uint interpolation; | ||||
| unsigned short extension, compress_as_srgb; | |||||
| /* Dimensions. */ | /* Dimensions. */ | ||||
| uint width, height, depth; | uint width, height, depth; | ||||
| } TextureInfo; | } TextureInfo; | ||||
| CCL_NAMESPACE_END | CCL_NAMESPACE_END | ||||
| #endif /* __UTIL_TEXTURE_H__ */ | #endif /* __UTIL_TEXTURE_H__ */ | ||||