Class VKSwapChainFrameBuffer
This class represents the swapchain FrameBuffer in Vulkan.
Inherited Members
Namespace: Evergine.Vulkan
Assembly: Evergine.Vulkan.dll
Syntax
public class VKSwapChainFrameBuffer : VKFrameBufferBase, ILoadable, 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 color texture array of this VKFrameBuffer.
Declaration
public VkImage[] BackBufferImages
Field Value
| Type | Description |
|---|---|
| VkImage[] |
CurrentBackBufferIndex
The active back buffer 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 framebuffers linked to this swapchain.
Declaration
public VKFrameBuffer[] FrameBuffers
Field Value
| Type | Description |
|---|---|
| VKFrameBuffer[] |
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
CurrentBackBuffer
Gets the current framebuffer based on the CurrentBackBufferIndex.
Declaration
public VkFramebuffer CurrentBackBuffer { get; }
Property Value
| Type | Description |
|---|---|
| VkFramebuffer |
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
Destroy()
Releases unmanaged and, optionally, managed resources.
Declaration
protected override void Destroy()
Overrides
TransitionToFinalLayout(VkCommandBuffer)
Transition to a 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)
Transitions the framebuffer to an intermediate layout.
Declaration
public override void TransitionToIntermedialLayout(VkCommandBuffer cb)
Parameters
| Type | Name | Description |
|---|---|---|
| VkCommandBuffer | cb | The command buffer to execute this change. |