Add realtime sky/skybox capturing for GI

This commit is contained in:
Wojciech Figat
2022-05-23 12:53:39 +02:00
parent 375222a089
commit 72c0474397
13 changed files with 156 additions and 39 deletions

View File

@@ -111,6 +111,16 @@ GPUTexture* RenderBuffers::RequestHalfResDepth(GPUContext* context)
return HalfResDepth;
}
const RenderBuffers::CustomBuffer* RenderBuffers::FindCustomBuffer(const StringView& name) const
{
for (const CustomBuffer* e : CustomBuffers)
{
if (e->Name == name)
return e;
}
return nullptr;
}
uint64 RenderBuffers::GetMemoryUsage() const
{
uint64 result = 0;