Class VKFrameBufferBase
Abstract class used to provide the same interface for swapchain framebuffer and framebuffer objects.
Inherited Members
Namespace: Evergine.Vulkan
Assembly: Evergine.Vulkan.dll
Syntax
public abstract class VKFrameBufferBase : FrameBuffer, ILoadable, IDependencyObject
Constructors
VKFrameBufferBase()
Initializes a new instance of the VKFrameBufferBase class.
Declaration
public VKFrameBufferBase()
VKFrameBufferBase(FrameBufferAttachment?, FrameBufferAttachment[], bool)
Initializes a new instance of the VKFrameBufferBase class.
Declaration
public VKFrameBufferBase(FrameBufferAttachment? depthTarget, FrameBufferAttachment[] colorTargets, bool disposeAttachments)
Parameters
Type | Name | Description |
---|---|---|
FrameBufferAttachment? | depthTarget | The depth target attachment. |
FrameBufferAttachment[] | colorTargets | The color target attachment. |
bool | disposeAttachments | Indicates whether the attachment texture should be destroyed with this object or not. |
Methods
TransitionToFinalLayout(VkCommandBuffer)
Transition to a ready-to-use layout.
Declaration
public abstract void TransitionToFinalLayout(VkCommandBuffer cb)
Parameters
Type | Name | Description |
---|---|---|
VkCommandBuffer | cb | The command buffer to execute this change. |
TransitionToIntermedialLayout(VkCommandBuffer)
Transitions the framebuffer to an intermediate layout.
Declaration
public abstract void TransitionToIntermedialLayout(VkCommandBuffer cb)
Parameters
Type | Name | Description |
---|---|---|
VkCommandBuffer | cb | The command buffer to execute this change. |