Cycles code internals: add CPU kernel support for 3D image textures.

This commit is contained in:
Brecht Van Lommel
2014-03-29 13:03:48 +01:00
parent 07d1fba367
commit a2e4ebd36a
11 changed files with 201 additions and 85 deletions

View File

@@ -37,7 +37,7 @@ void kernel_const_copy(KernelGlobals *kg, const char *name, void *host, size_t s
assert(0);
}
void kernel_tex_copy(KernelGlobals *kg, const char *name, device_ptr mem, size_t width, size_t height, InterpolationType interpolation)
void kernel_tex_copy(KernelGlobals *kg, const char *name, device_ptr mem, size_t width, size_t height, size_t depth, InterpolationType interpolation)
{
if(0) {
}
@@ -63,6 +63,7 @@ void kernel_tex_copy(KernelGlobals *kg, const char *name, device_ptr mem, size_t
tex->data = (float4*)mem;
tex->width = width;
tex->height = height;
tex->depth = depth;
tex->interpolation = interpolation;
}
}
@@ -79,6 +80,7 @@ void kernel_tex_copy(KernelGlobals *kg, const char *name, device_ptr mem, size_t
tex->data = (uchar4*)mem;
tex->width = width;
tex->height = height;
tex->depth = depth;
tex->interpolation = interpolation;
}
}