Class VKSwapChainFrameBuffer
This class represent the swapchain FrameBuffer on Vulkan.
Inherited Members
Namespace: Evergine.Vulkan
Assembly: Evergine.Vulkan.dll
Syntax
public class VKSwapChainFrameBuffer : VKFrameBufferBase, ILoadable, IDisposable, IDependencyObject
  Constructors
VKSwapChainFrameBuffer(VKGraphicsContext, VKSwapChain)
Initializes a new instance of the VKSwapChainFrameBuffer class.
Declaration
public VKSwapChainFrameBuffer(VKGraphicsContext context, VKSwapChain swapchain)
  Parameters
| Type | Name | Description | 
|---|---|---|
| VKGraphicsContext | context | The graphics context.  | 
      
| VKSwapChain | swapchain | The swapchain to create from.  | 
      
Fields
BackBufferImages
The colors texture array of this VKFrameBuffer.
Declaration
public VkImage[] BackBufferImages
  Field Value
| Type | Description | 
|---|---|
| VkImage[] | 
CurrentBackBufferIndex
The active backBuffer index.
Declaration
public int CurrentBackBufferIndex
  Field Value
| Type | Description | 
|---|---|
| int | 
DepthTargetTexture
The depth texture of this VKFrameBuffer.
Declaration
public VKTexture DepthTargetTexture
  Field Value
| Type | Description | 
|---|---|
| VKTexture | 
FrameBuffers
The array of frambuffers linked to this swapchain.
Declaration
public VKFrameBuffer[] FrameBuffers
  Field Value
| Type | Description | 
|---|---|
| VKFrameBuffer[] | 
Properties
ColorTargets
Gets or sets the collection of colors targets textures associated with this FrameBuffer.
Declaration
public override FrameBufferAttachment[] ColorTargets { get; protected set; }
  Property Value
| Type | Description | 
|---|---|
| FrameBufferAttachment[] | 
Overrides
CurrentBackBuffer
Gets the current framebuffer based on CurrentBackBufferIndex.
Declaration
public VkFramebuffer CurrentBackBuffer { get; }
  Property Value
| Type | Description | 
|---|---|
| VkFramebuffer | 
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 | 
  | 
      
Overrides
TransitionToFinalLayout(VkCommandBuffer)
Transition to ready to use layout.
Declaration
public override void TransitionToFinalLayout(VkCommandBuffer cb)
  Parameters
| Type | Name | Description | 
|---|---|---|
| VkCommandBuffer | cb | The command buffer to execute this change.  | 
      
Overrides
TransitionToIntermedialLayout(VkCommandBuffer)
Transition framebuffer to intermediate layout.
Declaration
public override void TransitionToIntermedialLayout(VkCommandBuffer cb)
  Parameters
| Type | Name | Description | 
|---|---|---|
| VkCommandBuffer | cb | The command buffer to execute this change.  |