mirror of
https://github.com/ZDoom/ZDRay.git
synced 2025-02-16 08:32:01 +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();
|
selectedSurfaces.Clear();
|
||||||
|
|
||||||
const int spacing = 5; // Note: the spacing is here to avoid that the resolve sampler finds data from other surface tiles
|
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++)
|
for (int i = 0, count = surfaces.Size(); i < count; i++)
|
||||||
{
|
{
|
||||||
|
@ -991,8 +991,9 @@ void VkLightmap::CreateCopyPipeline()
|
||||||
.Create(fb->GetDevice());
|
.Create(fb->GetDevice());
|
||||||
|
|
||||||
copy.descriptorPool = DescriptorPoolBuilder()
|
copy.descriptorPool = DescriptorPoolBuilder()
|
||||||
.AddPoolSize(VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, 256)
|
.AddPoolSize(VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, 1)
|
||||||
.MaxSets(256)
|
.AddPoolSize(VK_DESCRIPTOR_TYPE_STORAGE_BUFFER, 1)
|
||||||
|
.MaxSets(1)
|
||||||
.DebugName("copy.descriptorPool")
|
.DebugName("copy.descriptorPool")
|
||||||
.Create(fb->GetDevice());
|
.Create(fb->GetDevice());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue