Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/kernel.cpp
| Context not available. | |||||
| assert(0); | assert(0); | ||||
| } | } | ||||
| void kernel_tex_copy(KernelGlobals *kg, const char *name, device_ptr mem, size_t width, size_t height) | void kernel_tex_copy(KernelGlobals *kg, const char *name, device_ptr mem, size_t width, size_t height, int interpolation) | ||||
| { | { | ||||
| if(0) { | if(0) { | ||||
| } | } | ||||
| Context not available. | |||||
| tex->data = (float4*)mem; | tex->data = (float4*)mem; | ||||
| tex->width = width; | tex->width = width; | ||||
| tex->height = height; | tex->height = height; | ||||
| tex->interpolation = interpolation; | |||||
| } | } | ||||
| } | } | ||||
| else if(strstr(name, "__tex_image")) { | else if(strstr(name, "__tex_image")) { | ||||
| Context not available. | |||||
| tex->data = (uchar4*)mem; | tex->data = (uchar4*)mem; | ||||
| tex->width = width; | tex->width = width; | ||||
| tex->height = height; | tex->height = height; | ||||
| tex->interpolation = interpolation; | |||||
| } | } | ||||
| } | } | ||||
| else | else | ||||
| Context not available. | |||||