mirror of
https://github.com/ZDoom/ZDRay.git
synced 2024-11-21 11:40:55 +00:00
Fix out of descriptor pool error
This commit is contained in:
parent
526110e188
commit
2d1c0acff2
1 changed files with 4 additions and 3 deletions
|
@ -118,7 +118,7 @@ void VkLightmap::SelectSurfaces(const TArray<LevelMeshSurface*>& surfaces)
|
|||
selectedSurfaces.Clear();
|
||||
|
||||
const int spacing = 5; // Note: the spacing is here to avoid that the resolve sampler finds data from other surface tiles
|
||||
RectPacker packer(bakeImageSize - 2, bakeImageSize - 2, RectPacker::Spacing(spacing));
|
||||
RectPacker packer(bakeImageSize - spacing, bakeImageSize - spacing, RectPacker::Spacing(spacing));
|
||||
|
||||
for (int i = 0, count = surfaces.Size(); i < count; i++)
|
||||
{
|
||||
|
@ -991,8 +991,9 @@ void VkLightmap::CreateCopyPipeline()
|
|||
.Create(fb->GetDevice());
|
||||
|
||||
copy.descriptorPool = DescriptorPoolBuilder()
|
||||
.AddPoolSize(VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, 256)
|
||||
.MaxSets(256)
|
||||
.AddPoolSize(VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, 1)
|
||||
.AddPoolSize(VK_DESCRIPTOR_TYPE_STORAGE_BUFFER, 1)
|
||||
.MaxSets(1)
|
||||
.DebugName("copy.descriptorPool")
|
||||
.Create(fb->GetDevice());
|
||||
|
||||
|
|
Loading…
Reference in a new issue