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 VKSwap
Declaration
public VKSwapChainFrameBuffer(VKGraphicsContext context, VKSwapChain swapchain)
Parameters
Type | Name | Description |
---|---|---|
VKGraphics |
context | The graphics context. |
VKSwap |
swapchain | The swapchain to create from. |
Fields
BackBufferImages
The colors texture array of this VKFrame
Declaration
public VkImage[] BackBufferImages
Field Value
Type | Description |
---|---|
Vk |
CurrentBackBufferIndex
The active backBuffer index.
Declaration
public int CurrentBackBufferIndex
Field Value
Type | Description |
---|---|
int |
DepthTargetTexture
The depth texture of this VKFrame
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 |
---|---|
VKFrame |
Properties
ColorTargets
Gets or sets the collection of colors targets textures associated with this Frame
Declaration
public override FrameBufferAttachment[] ColorTargets { get; protected set; }
Property Value
Type | Description |
---|---|
Frame |
Overrides
CurrentBackBuffer
Gets the current framebuffer based on CurrentBackBufferIndex.
Declaration
public VkFramebuffer CurrentBackBuffer { get; }
Property Value
Type | Description |
---|---|
Vk |
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 |
---|---|---|
Vk |
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 |
---|---|---|
Vk |
cb | The command buffer to execute this change. |