Class DX12FrameBuffer
FrameBuffer implementation on DirectX.
Inherited Members
Namespace: Evergine.DirectX12
Assembly: Evergine.DirectX12.dll
Syntax
public class DX12FrameBuffer : FrameBuffer, ILoadable, IDisposable, IDependencyObject
  Constructors
DX12FrameBuffer(DX12GraphicsContext, FrameBufferAttachment?, FrameBufferAttachment[], bool)
Initializes a new instance of the DX12FrameBuffer class.
Declaration
public DX12FrameBuffer(DX12GraphicsContext context, FrameBufferAttachment? depthTarget, FrameBufferAttachment[] colorTargets, bool disposeAttachments = true)
  Parameters
| Type | Name | Description | 
|---|---|---|
| DX12GraphicsContext | context | The graphics context.  | 
      
| FrameBufferAttachment? | depthTarget | The depth texture which must have been created with DepthStencil flag.  | 
      
| FrameBufferAttachment[] | colorTargets | The array of color textures, all of which must have been created with RenderTarget flags.  | 
      
| bool | disposeAttachments | When this framebuffer is disposed, dispose the attachment textures too.  | 
      
Fields
ColorTargetTextures
The colors texture array of this DX12FrameBuffer.
Declaration
public DX12Texture[] ColorTargetTextures
  Field Value
| Type | Description | 
|---|---|
| DX12Texture[] | 
ColorTargetViews
The renderTargetView array of this DX12FrameBuffer.
Declaration
public CpuDescriptorHandle[] ColorTargetViews
  Field Value
| Type | Description | 
|---|---|
| CpuDescriptorHandle[] | 
DepthTargetTexture
The depth texture of this DX12FrameBuffer.
Declaration
public DX12Texture DepthTargetTexture
  Field Value
| Type | Description | 
|---|---|
| DX12Texture | 
DepthTargetview
The depthTargetView of this DX12FrameBuffer.
Declaration
public CpuDescriptorHandle DepthTargetview
  Field Value
| Type | Description | 
|---|---|
| CpuDescriptorHandle | 
Properties
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
RequireFlipProjection
Gets or sets a value indicating whether this FrameBuffer requires the projection matrix to be flipped. By default they will indicate the default flip behavior, but the user can change it.
Declaration
public override bool RequireFlipProjection { get; }
  Property Value
| Type | Description | 
|---|---|
| bool | 
Overrides
Methods
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
Declaration
protected override void Dispose(bool disposing)
  Parameters
| Type | Name | Description | 
|---|---|---|
| bool | disposing | 
  |