Fixed compilation errors
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user