Class DX12SwapChainFrameBuffer
This class represents the swapchain FrameBuffer in DirectX12.
Inherited Members
Namespace: Evergine.DirectX12
Assembly: Evergine.DirectX12.dll
Syntax
public class DX12SwapChainFrameBuffer : FrameBuffer, ILoadable, IDependencyObject
Constructors
DX12SwapChainFrameBuffer(DX12GraphicsContext, DX12SwapChain)
Initializes a new instance of the DX12SwapChainFrameBuffer class.
Declaration
public DX12SwapChainFrameBuffer(DX12GraphicsContext context, DX12SwapChain swapchain)
Parameters
Type | Name | Description |
---|---|---|
DX12GraphicsContext | context | The graphics context. |
DX12SwapChain | swapchain | The swap chain to create from. |
Fields
CurrentBackBufferIndex
The active back buffer index.
Declaration
public int CurrentBackBufferIndex
Field Value
Type | Description |
---|---|
int |
DepthTargetTexture
The depth texture of this DX12SwapChainFrameBuffer.
Declaration
public DX12Texture DepthTargetTexture
Field Value
Type | Description |
---|---|
DX12Texture |
DepthTargetview
The depth target view of this DX12SwapChainFrameBuffer.
Declaration
public CpuDescriptorHandle DepthTargetview
Field Value
Type | Description |
---|---|
CpuDescriptorHandle |
FrameBuffers
The array of framebuffers linked to this swapchain.
Declaration
public DX12FrameBuffer[] FrameBuffers
Field Value
Type | Description |
---|---|
DX12FrameBuffer[] |
Properties
ColorTargets
Gets or sets the collection of color target textures associated with this FrameBuffer.
Declaration
public override FrameBufferAttachment[] ColorTargets { get; protected set; }
Property Value
Type | Description |
---|---|
FrameBufferAttachment[] |
Overrides
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 |
|