Represents a Texture2D that can be used as a render target, which is generated dynamically by
rendering data into it and which can be used later as a regular texture.
Declaration Syntax
C# |
public class RenderTarget2D : Texture2D
Members
All Members | Constructors | Methods | Properties | ||
|
|
|
Icon | Member | Description |
---|---|---|
RenderTarget2D(Int32, Int32) |
Creates a new instance of RenderTarget2D with format Color.
|
|
RenderTarget2D(Int32, Int32, Boolean, SurfaceFormat, DepthFormat) |
Creates a new instance of RenderTarget2D.
|
|
RenderTarget2D(Int32, Int32, Boolean, SurfaceFormat, DepthFormat, Int32, RenderTargetUsage) |
Creates a new instance of RenderTarget2D.
|
|
RenderTarget2D(IRenderSystemProvider, Int32, Int32) |
Creates a new instance of RenderTarget2D with format Color.
|
|
RenderTarget2D(IRenderSystemProvider, Int32, Int32, Boolean, SurfaceFormat, DepthFormat) |
Creates a new instance of RenderTarget2D.
|
|
RenderTarget2D(IRenderSystemProvider, Int32, Int32, Boolean, SurfaceFormat, DepthFormat, Int32, RenderTargetUsage) |
Creates a new instance of RenderTarget2D.
|
|
Bounds |
Gets the texture bounds, in pixels.
(Inherited from Texture2D.) |
|
DepthStencilFormat |
Gets the format of the depth-stencil buffer.
|
|
Dimensions |
Gets the texture dimensions, identifying the texture resource.
(Inherited from Texture2D.) |
|
Dispose()()()() |
Dispose the resource.
(Inherited from GraphicsResource.) |
|
Dispose(Boolean) |
Releases unmanaged and - optionally - managed resources
(Inherited from GraphicsResource.) |
|
Equals(Object) |
(Inherited from Object.) |
|
Finalize()()()() |
Releases unmanaged resources and performs other cleanup operations before the
RenderTarget2D is reclaimed by garbage collection.
(Overrides Texture2D.Finalize()()()().) |
|
Format |
Gets the format of the texture resource.
(Inherited from Texture2D.) |
|
GetData<(Of <<'(T>)>>)(array<T>[]()[][]) |
Gets the data from the texture from the first mip level.
(Inherited from Texture2D.) |
|
GetData<(Of <<'(T>)>>)(array<T>[]()[][], Int32, Int32) |
Gets the data from the texture from the first mip level.
(Inherited from Texture2D.) |
|
GetData<(Of <<'(T>)>>)(array<T>[]()[][], Int32, Nullable<(Of <<'(Rectangle>)>>), Int32, Int32) |
Gets the data from the texture from the first mip level.
(Inherited from Texture2D.) |
|
GetHashCode()()()() |
Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType()()()() |
Gets the Type of the current instance. (Inherited from Object.) |
|
Height |
Gets the texture height, in pixels.
(Inherited from Texture2D.) |
|
Implementation |
Gets the API-specific implementation of this resource.
(Inherited from Texture2D.) |
|
IsDisposed |
Gets if the resource's implementation has been disposed.
(Inherited from GraphicsResource.) |
|
MemberwiseClone()()()() |
Creates a shallow copy of the current Object. (Inherited from Object.) |
|
MipCount |
Gets the number of mip map levels in the texture resource.
(Inherited from Texture2D.) |
|
MultiSampleCount |
Gets the multisample count used during multisampling.
|
|
Name |
Get or sets the name of this resource.
(Inherited from GraphicsResource.) |
|
Read(ISavableReader) |
Deserializes the object and populates it from the input.
(Inherited from Texture2D.) |
|
RenderSystem |
Gets or protected sets the render system that created this resource.
(Inherited from GraphicsResource.) |
|
ResourceID |
Gets or sets the ResourceID of this resource. Can only be set once, usually by the renderer.
(Inherited from GraphicsResource.) |
|
SetData<(Of <<'(T>)>>)(array<T>[]()[][]) |
Sets the data to the texture at the first mip level.
(Inherited from Texture2D.) |
|
SetData<(Of <<'(T>)>>)(array<T>[]()[][], Int32, Int32) |
Sets the data to the texture at the first mip level.
(Inherited from Texture2D.) |
|
SetData<(Of <<'(T>)>>)(array<T>[]()[][], Int32, Nullable<(Of <<'(Rectangle>)>>), Int32, Int32) |
Sets the data to the texture.
(Inherited from Texture2D.) |
|
TargetUsage |
Gets the render target usage.
|
|
ToString()()()() |
(Inherited from Object.) |
|
Width |
Gets the texture width, in pixels.
(Inherited from Texture2D.) |
|
Write(ISavableWriter) |
Serializes the object and writes it to the output.
(Inherited from Texture2D.) |
Remarks
Each render target has a depth-stencil buffer associated with it (if the format is specified)
that is used when the target is bound to the graphics pipeline. In a multi-render target (MRT)
scenario, the first render target's depth-stencil buffer is used for all targets.
Inheritance Hierarchy
Object | ||||
GraphicsResource | ||||
Texture | ||||
Texture2D | ||||
RenderTarget2D |
Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)