Class DX12SwapChainFrameBuffer
This class represent the swapchain FrameBuffer on DirectX12.
Inherited Members
Namespace: Evergine.DirectX12
Assembly: Evergine.DirectX12.dll
Syntax
public class DX12SwapChainFrameBuffer : FrameBuffer, ILoadable, IDisposable, 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 swapchain to create from.  | 
      
Fields
BackBufferTextures
The colors texture array of this DX12SwapChainFrameBuffer.
Declaration
public DX12Texture[] BackBufferTextures
  Field Value
| Type | Description | 
|---|---|
| DX12Texture[] | 
BackBuffers
The renderTargetView array of this DX12SwapChainFrameBuffer.
Declaration
public CpuDescriptorHandle[] BackBuffers
  Field Value
| Type | Description | 
|---|---|
| CpuDescriptorHandle[] | 
CurrentBackBufferIndex
The active backBuffer 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 depthTargetView of this DX12SwapChainFrameBuffer.
Declaration
public CpuDescriptorHandle DepthTargetview
  Field Value
| Type | Description | 
|---|---|
| CpuDescriptorHandle | 
Properties
ColorTargetViews
Gets the renderTargetView array of this DX12SwapChainFrameBuffer.
Declaration
public CpuDescriptorHandle ColorTargetViews { get; }
  Property Value
| Type | Description | 
|---|---|
| CpuDescriptorHandle | 
Name
Gets or sets a string identifying this instance. 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 | 
  |