fix for own error with opencl bokeh blur.
This commit is contained in:
@@ -727,7 +727,6 @@ macro(set_lib_path
|
||||
endmacro()
|
||||
|
||||
|
||||
# TODO, create a C binary and call it instead!, doing this in cmake its slow
|
||||
macro(data_to_c
|
||||
file_from file_to
|
||||
list_to_add)
|
||||
@@ -744,6 +743,7 @@ macro(data_to_c
|
||||
unset(_file_to_path)
|
||||
endmacro()
|
||||
|
||||
|
||||
# same as above but generates the var name and output automatic.
|
||||
macro(data_to_c_simple
|
||||
file_from
|
||||
|
@@ -78,7 +78,7 @@ __kernel void bokehBlurKernel(__read_only image2d_t boundingBox, __read_only ima
|
||||
__kernel void defocusKernel(__read_only image2d_t inputImage, __read_only image2d_t bokehImage,
|
||||
__read_only image2d_t inputSize,
|
||||
__write_only image2d_t output, int2 offsetInput, int2 offsetOutput,
|
||||
int step, int maxBlurScalar, float threshold, int2 dimension, int2 offset, float scalar)
|
||||
int step, int maxBlurScalar, float threshold, float scalar, int2 dimension, int2 offset)
|
||||
{
|
||||
float4 color = {1.0f, 0.0f, 0.0f, 1.0f};
|
||||
int2 coords = {get_global_id(0), get_global_id(1)};
|
||||
|
Reference in New Issue
Block a user