From f61c340bc15ef1573dc48f65fc7c71fce0a47a07 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sun, 8 Oct 2017 02:36:05 +0200 Subject: Cycles: OpenCL bicubic and tricubic texture interpolation support. --- intern/cycles/util/util_texture.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'intern/cycles/util') diff --git a/intern/cycles/util/util_texture.h b/intern/cycles/util/util_texture.h index f22948d9bcd..cec03dc5e6e 100644 --- a/intern/cycles/util/util_texture.h +++ b/intern/cycles/util/util_texture.h @@ -52,7 +52,7 @@ CCL_NAMESPACE_BEGIN /* Interpolation types for textures * cuda also use texture space to store other objects */ -enum InterpolationType { +typedef enum InterpolationType { INTERPOLATION_NONE = -1, INTERPOLATION_LINEAR = 0, INTERPOLATION_CLOSEST = 1, @@ -60,12 +60,12 @@ enum InterpolationType { INTERPOLATION_SMART = 3, INTERPOLATION_NUM_TYPES, -}; +} InterpolationType; /* 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 { +typedef enum ImageDataType { IMAGE_DATA_TYPE_FLOAT4 = 0, IMAGE_DATA_TYPE_BYTE4 = 1, IMAGE_DATA_TYPE_HALF4 = 2, @@ -74,7 +74,7 @@ enum ImageDataType { IMAGE_DATA_TYPE_HALF = 5, IMAGE_DATA_NUM_TYPES -}; +} ImageDataType; #define IMAGE_DATA_TYPE_SHIFT 3 #define IMAGE_DATA_TYPE_MASK 0x7 @@ -82,7 +82,7 @@ enum ImageDataType { /* Extension types for textures. * * Defines how the image is extrapolated past its original bounds. */ -enum ExtensionType { +typedef enum ExtensionType { /* Cause the image to repeat horizontally and vertically. */ EXTENSION_REPEAT = 0, /* Extend by repeating edge pixels of the image. */ @@ -91,7 +91,7 @@ enum ExtensionType { EXTENSION_CLIP = 2, EXTENSION_NUM_TYPES, -}; +} ExtensionType; typedef struct TextureInfo { /* Pointer, offset or texture depending on device. */ -- cgit v1.2.3