IRenderTarget
Description
- Derived from
- Extended by
-
IPipelineRenderTarget
ISwapChain
RenderTarget abstract
A render target surface.
The BeginEnd methods may only be used between paired IBeginEnd.Begin / IBeginEnd.End of the owning IGraphicsContext.
Public / Methods
Finish
Use of this render target as output (see IGraphicsContext.SetRenderTarget) has finished, it is now going to be used as input for subsequent work, for example rendering or presentation.
This method must be called once after having used this IRenderTarget object as output during one or more render cycles (see IGraphicsContext.SetRenderTarget) and before using it as input for subsequent work, for example rendering or presentation. Reading the current pixel contents via IGraphicsContext.ReadPixels does not count as rendering work.
This method should be called when this render target is no longer active, for example after IGraphicsContext.SetRenderTargetRestore has been called.
Public / Attributes
Texture
The texture resource that holds the rendered pixels.
The ITexture.Format property of the returned texture will always TextureFormat.A8R8G8B8 and IResource.AccessPattern will be ResourceAccessPattern.Static, which means that ITexture2D.SetTexels cannot be used.
- See also