Color or depth-stencil surface that can be rendered into.
More...
#include <Urho3D/Graphics/RenderSurface.h>
|
|
| RenderSurface (Texture *parentTexture, unsigned slice) |
| |
|
void | Restore (Diligent::ITextureView *view) |
| | Internal. Restore GPU resource.
|
| |
|
void | Invalidate () |
| | Internal. Invalidate GPU resource.
|
| |
| void | SetNumViewports (unsigned num) |
| |
| void | SetViewport (unsigned index, Viewport *viewport) |
| |
| void | SetUpdateMode (RenderSurfaceUpdateMode mode) |
| |
| void | SetLinkedRenderTarget (RenderSurface *renderTarget) |
| |
| void | SetLinkedDepthStencil (RenderSurface *depthStencil) |
| |
|
void | QueueUpdate () |
| | Queue manual update of the viewport(s).
|
| |
| int | GetWidth () const |
| |
| int | GetHeight () const |
| |
|
IntVector2 | GetSize () const |
| | Return size.
|
| |
|
int | GetMultiSample () const |
| | Return multisampling level.
|
| |
|
bool | GetAutoResolve () const |
| | Return multisampling autoresolve mode.
|
| |
| unsigned | GetNumViewports () const |
| |
| Viewport * | GetViewport (unsigned index) const |
| |
| RenderSurfaceUpdateMode | GetUpdateMode () const |
| |
| RenderSurface * | GetLinkedRenderTarget () const |
| |
| RenderSurface * | GetLinkedDepthStencil () const |
| |
|
bool | IsUpdateQueued () const |
| | Return whether manual update queued. Called internally.
|
| |
|
void | ResetUpdateQueued () |
| | Reset update queued flag. Called internally.
|
| |
| Texture * | GetParentTexture () const |
| |
|
unsigned | GetSlice () const |
| | Return slice of the parent texture.
|
| |
|
RenderTargetView | GetView () const |
| |
|
RenderTargetView | GetReadOnlyDepthView () const |
| |
|
bool | IsRenderTarget () const |
| |
|
bool | IsDepthStencil () const |
| |
| bool | IsResolveDirty () const |
| |
|
void | SetResolveDirty (bool enable) |
| | Set or clear the need resolve flag. Called internally by Graphics.
|
| |
|
| RefCounted () |
| | Construct. Allocate the reference count structure and set an initial self weak reference.
|
| |
|
virtual | ~RefCounted () |
| | Destruct. Mark as expired and also delete the reference count structure if no outside weak references exist.
|
| |
|
| RefCounted (const RefCounted &rhs)=delete |
| | Prevent copy construction.
|
| |
|
RefCounted & | operator= (const RefCounted &rhs)=delete |
| | Prevent assignment.
|
| |
| int | AddRef () |
| |
| int | ReleaseRef () |
| |
| int | Refs () const |
| |
| int | WeakRefs () const |
| |
|
RefCount * | RefCountPtr () const |
| | Return pointer to the reference count structure.
|
| |
|
bool | HasScriptObject () const |
| | Return true if script runtime object wrapping this native object exists.
|
| |
|
bool | IsScriptStrongRef () const |
| | Return true if script reference is strong.
|
| |
|
|
const WeakPtr< Texture > | parentTexture_ |
| | Parent texture.
|
| |
|
const unsigned | slice_ {} |
| | Slice of the parent texture.
|
| |
|
Diligent::RefCntAutoPtr< Diligent::ITextureView > | renderTargetView_ |
| | Diligent rendertarget or depth-stencil view.
|
| |
|
ea::vector< SharedPtr< Viewport > > | viewports_ |
| | Viewports.
|
| |
|
WeakPtr< RenderSurface > | linkedRenderTarget_ |
| | Linked color buffer.
|
| |
|
WeakPtr< RenderSurface > | linkedDepthStencil_ |
| | Linked depth buffer.
|
| |
|
RenderSurfaceUpdateMode | updateMode_ {SURFACE_UPDATEVISIBLE} |
| | Update mode for viewports.
|
| |
|
std::atomic_bool | updateQueued_ { false } |
| | Update queued flag.
|
| |
|
bool | resolveDirty_ {} |
| | Multisampled resolve dirty flag.
|
| |
Color or depth-stencil surface that can be rendered into.
◆ GetHeight()
| int Urho3D::RenderSurface::GetHeight |
( |
| ) |
const |
◆ GetLinkedDepthStencil()
| RenderSurface * Urho3D::RenderSurface::GetLinkedDepthStencil |
( |
| ) |
const |
|
inline |
Return linked depth-stencil surface.
◆ GetLinkedRenderTarget()
| RenderSurface * Urho3D::RenderSurface::GetLinkedRenderTarget |
( |
| ) |
const |
|
inline |
Return linked color rendertarget.
◆ GetNumViewports()
| unsigned Urho3D::RenderSurface::GetNumViewports |
( |
| ) |
const |
|
inline |
Return number of viewports.
◆ GetParentTexture()
| Texture * Urho3D::RenderSurface::GetParentTexture |
( |
| ) |
const |
|
inline |
◆ GetSize()
Property getters that can work with null RenderSurface corresponding to main viewport
◆ GetUpdateMode()
Return viewport update mode.
◆ GetViewport()
| Viewport * Urho3D::RenderSurface::GetViewport |
( |
unsigned |
index | ) |
const |
Return viewport by index.
◆ GetWidth()
| int Urho3D::RenderSurface::GetWidth |
( |
| ) |
const |
◆ IsResolveDirty()
| bool Urho3D::RenderSurface::IsResolveDirty |
( |
| ) |
const |
|
inline |
Return whether multisampled rendertarget needs resolve.
◆ SetLinkedDepthStencil()
| void Urho3D::RenderSurface::SetLinkedDepthStencil |
( |
RenderSurface * |
depthStencil | ) |
|
Set linked depth-stencil surface.
◆ SetLinkedRenderTarget()
| void Urho3D::RenderSurface::SetLinkedRenderTarget |
( |
RenderSurface * |
renderTarget | ) |
|
Set linked color rendertarget.
◆ SetNumViewports()
| void Urho3D::RenderSurface::SetNumViewports |
( |
unsigned |
num | ) |
|
◆ SetUpdateMode()
Set viewport update mode. Default is to update when visible.
◆ SetViewport()
| void Urho3D::RenderSurface::SetViewport |
( |
unsigned |
index, |
|
|
Viewport * |
viewport |
|
) |
| |
The documentation for this class was generated from the following files:
- Urho3D/Graphics/RenderSurface.h
- Urho3D/Graphics/RenderSurface.cpp