RenderBuffer

RenderBuffer
Declaration
class RenderBuffer : public NewOverrideBase<StatRender_TextureManager_Mem>, public RefCountVImpl, public Unassignable;
Description

RenderBuffer is a type of buffer created and managed by the RenderBufferManager, with implementations including RenderTarget and DepthStencilBuffer

Features: 

- RenderBuffer reference counting is custom due to potential caching, allowing released buffers to survive and be reused when applicable. 

- Each RenderBuffer may have associated RenderTargetData allocated, which will get deleted whenever RenderBuffer actually dies or its associated HW resource (texture, etc) is lost. 

- ListNode base and RBCacheListType are stored in base class for convenient implementation.

Methods
Method 
Description 
Destroys the render buffer along with its data. The RenderTargetData will also be deleted. 
Increments the reference count of the render buffer. 
Returns the underlying texture buffer size. 
Returns the RenderTargetData associated with the render buffer. 
Returns the type of the render buffer. 
Decrements the reference count of the render buffer. 
RenderBuffer constructor. 
Assigns ownership to RenderBuffer which will destroy it when no longer relevant. 
File

Render_Buffer.h