diff --git a/liblava/resource/image.cpp b/liblava/resource/image.cpp index 433a733897f6ccbc1a75cb802c97d272591f0770..36680b72204ee3809f00118efd27af159ca470f5 100644 --- a/liblava/resource/image.cpp +++ b/liblava/resource/image.cpp @@ -3,6 +3,7 @@ // license : MIT; see accompanying LICENSE file #include <liblava/resource/image.hpp> +#include <liblava/resource/format.hpp> namespace lava { @@ -27,7 +28,7 @@ namespace lava { }; subresource_range = { - .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, + .aspectMask = format_aspect_mask(format), .baseMipLevel = 0, .levelCount = 1, .baseArrayLayer = 0,