feat(bindless): Update image layer count

This commit is contained in:
PancakeTAS 2026-04-26 00:18:21 +02:00
parent 08452e9771
commit 63249dde7a
No known key found for this signature in database
4 changed files with 4 additions and 4 deletions

View file

@ -548,7 +548,7 @@ namespace {
| ImageFlag::ExternalOutput
| ImageFlag::HdrVariant,
.extentOp = extent,
.count = 2 // FIXME: Count should be 1.
.count = 1
});
s.appendPass({

View file

@ -113,7 +113,7 @@ int benchmark::run(const Options& opts) {
extent,
VK_FORMAT_R8G8B8A8_UNORM,
VK_IMAGE_USAGE_TRANSFER_SRC_BIT | VK_IMAGE_USAGE_SAMPLED_BIT,
fds.destinationFd, std::nullopt, 2 // FIXME: Should be 1
fds.destinationFd
};
const vk::TimelineSemaphore sync{vk,
0,

View file

@ -160,7 +160,7 @@ int debug::run(const Options& opts) {
extent,
VK_FORMAT_R8G8B8A8_UNORM,
VK_IMAGE_USAGE_TRANSFER_SRC_BIT | VK_IMAGE_USAGE_SAMPLED_BIT,
fds.destinationFd, std::nullopt, 2 // FIXME: Should be 1
fds.destinationFd
};
const vk::TimelineSemaphore sync{vk,
0,

View file

@ -92,7 +92,7 @@ Swapchain::Swapchain(const vk::Vulkan& vk, lsfgvk::Instance& backend,
this->destinationImage.emplace(vk,
extent, VK_FORMAT_R8G8B8A8_UNORM,
VK_IMAGE_USAGE_TRANSFER_SRC_BIT | VK_IMAGE_USAGE_SAMPLED_BIT,
exportedFds.destinationFd, std::nullopt, 2); // FIXME: Should be 1
exportedFds.destinationFd);
this->syncSemaphore.emplace(vk, 0, exportedFds.syncFd);
this->renderCommandBuffer.emplace(vk);