Fix cryptomatte GPU compositor node on NVidia Linux
This commit fixes node_cryptomatte test in the matte category when using GPU compositor on Linux with NVidia GPU. Before this fix the result image was squished horizontally. The issue was caused by mismatch in the shader info and the actual allocation of the matte image. Pull Request: https://projects.blender.org/blender/blender/pulls/117475
This commit is contained in:
committed by
Sergey Sharybin
parent
c683925f6d
commit
aca0cf27e3
@@ -16,7 +16,7 @@ GPU_SHADER_CREATE_INFO(compositor_cryptomatte_matte)
|
||||
.push_constant(Type::INT, "identifiers_count")
|
||||
.push_constant(Type::FLOAT, "identifiers", 32)
|
||||
.sampler(0, ImageType::FLOAT_2D, "layer_tx")
|
||||
.image(0, GPU_RGBA16F, Qualifier::READ_WRITE, ImageType::FLOAT_2D, "matte_img")
|
||||
.image(0, GPU_R16F, Qualifier::READ_WRITE, ImageType::FLOAT_2D, "matte_img")
|
||||
.compute_source("compositor_cryptomatte_matte.glsl")
|
||||
.do_static_compilation(true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user