Fix: Bokeh images missing write usage flag
Bokeh images are written from shaders without a write usage flag, which causes assertions on Metal.
This commit is contained in:
parent
140f5f619d
commit
92a0dfed94
|
@ -81,7 +81,7 @@ BokehKernel::BokehKernel(Context &context,
|
||||||
size.y,
|
size.y,
|
||||||
1,
|
1,
|
||||||
Result::texture_format(ResultType::Color, context.get_precision()),
|
Result::texture_format(ResultType::Color, context.get_precision()),
|
||||||
GPU_TEXTURE_USAGE_SHADER_READ,
|
GPU_TEXTURE_USAGE_SHADER_READ | GPU_TEXTURE_USAGE_SHADER_WRITE,
|
||||||
nullptr);
|
nullptr);
|
||||||
|
|
||||||
GPUShader *shader = context.get_shader("compositor_bokeh_image");
|
GPUShader *shader = context.get_shader("compositor_bokeh_image");
|
||||||
|
|
Loading…
Reference in New Issue