mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 06:56:40 +00:00
Bump up maximum image attachments on framebuffer by 1 (8 colour + depth)
This commit is contained in:
@@ -806,7 +806,7 @@ struct VkResourceRecord : public ResourceRecord
|
||||
|
||||
VkResourceRecord *bakedCommands;
|
||||
|
||||
static const int MaxImageAttachments = 8;
|
||||
static const int MaxImageAttachments = 9; // 8 Colour and 1 Depth
|
||||
|
||||
// pointer to either the pool this item is allocated from, or the children allocated
|
||||
// from this pool. Protected by the chunk lock
|
||||
|
||||
@@ -495,7 +495,7 @@ VkResult WrappedVulkan::vkCreateFramebuffer(
|
||||
record->AddChunk(chunk);
|
||||
|
||||
record->imageAttachments = new VkResourceRecord*[VkResourceRecord::MaxImageAttachments];
|
||||
RDCASSERT(pCreateInfo->attachmentCount < VkResourceRecord::MaxImageAttachments);
|
||||
RDCASSERT(pCreateInfo->attachmentCount <= VkResourceRecord::MaxImageAttachments);
|
||||
|
||||
RDCEraseMem(record->imageAttachments, sizeof(ResourceId)*VkResourceRecord::MaxImageAttachments);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user