aboutsummaryrefslogtreecommitdiff
path: root/src/vulkan/frame_buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vulkan/frame_buffer.h')
-rw-r--r--src/vulkan/frame_buffer.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/vulkan/frame_buffer.h b/src/vulkan/frame_buffer.h
index 202726b..064b6d3 100644
--- a/src/vulkan/frame_buffer.h
+++ b/src/vulkan/frame_buffer.h
@@ -33,11 +33,12 @@ class FrameBuffer {
FrameBuffer(
Device* device,
const std::vector<const amber::Pipeline::BufferInfo*>& color_attachments,
+ amber::Pipeline::BufferInfo depth_stencil_attachment,
uint32_t width,
uint32_t height);
~FrameBuffer();
- Result Initialize(VkRenderPass render_pass, const Format* depth_format);
+ Result Initialize(VkRenderPass render_pass);
void ChangeFrameToDrawLayout(CommandBuffer* command);
void ChangeFrameToProbeLayout(CommandBuffer* command);
@@ -51,8 +52,8 @@ class FrameBuffer {
// Only record the command for copying the image that backs this
// framebuffer to the host accessible buffer. The actual submission
// of the command must be done later.
- void TransferColorImagesToHost(CommandBuffer* command);
- void TransferColorImagesToDevice(CommandBuffer* command);
+ void TransferImagesToHost(CommandBuffer* command);
+ void TransferImagesToDevice(CommandBuffer* command);
void CopyImagesToBuffers();
void CopyBuffersToImages();
@@ -69,9 +70,10 @@ class FrameBuffer {
Device* device_ = nullptr;
std::vector<const amber::Pipeline::BufferInfo*> color_attachments_;
+ amber::Pipeline::BufferInfo depth_stencil_attachment_;
VkFramebuffer frame_ = VK_NULL_HANDLE;
std::vector<std::unique_ptr<TransferImage>> color_images_;
- std::unique_ptr<TransferImage> depth_image_;
+ std::unique_ptr<TransferImage> depth_stencil_image_;
uint32_t width_ = 0;
uint32_t height_ = 0;
uint32_t depth_ = 1;