Fixed compilation errors

This commit is contained in:
antopilo
2025-04-29 22:30:56 -04:00
parent 6f9f3a96e2
commit e8e713253e
3 changed files with 4 additions and 5 deletions

View File

@@ -119,7 +119,7 @@ BindlessDescriptor::BindlessDescriptor(ResourceType type, BindlessInfo& info)
{
const size_t offset = i * size;
uint8_t* partitionStart = static_cast<uint8_t*>(mappedData) + offset;
Descriptors.emplace_back(Descriptor(Buffer, DescriptorLayout, partitionStart, offset, size));
Descriptors.emplace_back(Buffer, DescriptorLayout, partitionStart, offset, size, info);
}
}

View File

@@ -54,8 +54,7 @@ namespace Nuake
~Descriptor() = default;
int32_t LoadResource(const UUID& id);
int32_t GetResourceSlot(const UUID& id);
int32_t GetResourceSlot(const UUID& id) const;
};
// Contains buffer for N frames of a resource type
@@ -98,7 +97,7 @@ namespace Nuake
{
Info.ResourceElementSize[T] = sizeof(S);
Info.ResourceCount[T] = size;
Descriptors[T] = BindlessDescriptor(T, (size_t)sizeof(S) * size);
//Descriptors[T] = BindlessDescriptor(T, Info);
}
};
}

View File

@@ -34,7 +34,7 @@ ShadowRenderPipeline::ShadowRenderPipeline()
shadowPass.SetShaders(shaderMgr.GetShader("shadow_vert"), shaderMgr.GetShader("shadow_frag"));
shadowPass.SetPushConstant<GBufferConstant>(gbufferConstant);
shadowPass.SetPreRender([&](PassRenderContext& ctx) {
auto& layout = ctx.renderPass->PipelineLayout;
auto& layout = ctx.renderPass->PipelineLayout;
auto& res = GPUResources::Get();
Cmd& cmd = ctx.commandBuffer;