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:
Omar Emara 2023-12-26 12:59:35 +02:00
parent 140f5f619d
commit 92a0dfed94
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ BokehKernel::BokehKernel(Context &context,
size.y,
1,
Result::texture_format(ResultType::Color, context.get_precision()),
GPU_TEXTURE_USAGE_SHADER_READ,
GPU_TEXTURE_USAGE_SHADER_READ | GPU_TEXTURE_USAGE_SHADER_WRITE,
nullptr);
GPUShader *shader = context.get_shader("compositor_bokeh_image");