Class DX11FrameBuffer
Framebuffer implementation in DirectX.
Inherited Members
Namespace: Evergine.DirectX11
Assembly: Evergine.DirectX11.dll
Syntax
public class DX11FrameBuffer : FrameBuffer, ILoadable, IDependencyObject
Constructors
DX11FrameBuffer(FrameBufferAttachment?, FrameBufferAttachment[], bool)
Initializes a new instance of the DX11FrameBuffer class.
Declaration
public DX11FrameBuffer(FrameBufferAttachment? depthTarget, FrameBufferAttachment[] colorTargets, bool disposeAttachments = true)
Parameters
Type | Name | Description |
---|---|---|
FrameBufferAttachment? | depthTarget | The depth texture, which must have been created with the DepthStencil flag. |
FrameBufferAttachment[] | colorTargets | The array of color textures, all of which must have been created with the RenderTarget flags. |
bool | disposeAttachments | When this framebuffer is disposed, dispose of the attachment textures too. |
Fields
ColorTargetViews
The render target view array of this DX11FrameBuffer.
Declaration
public ID3D11RenderTargetView[] ColorTargetViews
Field Value
Type | Description |
---|---|
ID3D11RenderTargetView[] |
DepthTargetview
The depth target view of this DX11FrameBuffer.
Declaration
public ID3D11DepthStencilView DepthTargetview
Field Value
Type | Description |
---|---|
ID3D11DepthStencilView |
Properties
Name
Gets or sets a string identifying this instance. It can be used in graphics debuggers tools.
Declaration
public override string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
Dispose(bool)
Releases unmanaged and optionally managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
|