Renderer: Refactor transient resources (allow access at any time)
This commit is contained in:
committed by
Jérôme Leclercq
parent
de68033a0e
commit
4db5b59ec9
@@ -20,6 +20,7 @@ namespace Nz
|
||||
{
|
||||
class CommandPool;
|
||||
class RenderDevice;
|
||||
class TransientResources;
|
||||
|
||||
class NAZARA_RENDERER_API Swapchain : public RenderTarget
|
||||
{
|
||||
@@ -33,6 +34,8 @@ namespace Nz
|
||||
|
||||
virtual void NotifyResize(const Vector2ui& newSize) = 0;
|
||||
|
||||
virtual TransientResources& Transient() = 0;
|
||||
|
||||
protected:
|
||||
static void BuildRenderPass(PixelFormat colorFormat, PixelFormat depthFormat, std::vector<RenderPass::Attachment>& attachments, std::vector<RenderPass::SubpassDescription>& subpassDescriptions, std::vector<RenderPass::SubpassDependency>& subpassDependencies);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user