/*
	VulkanFramework
	by John Ryland
	Copyright (c) 2023
*/

////////////////////////////////////////////////////////////////////////////////////
//	Vulkan Depth Buffer

#include "VulkanDepthBuffer.h"
#include <stdexcept>

namespace Vulkan {

DepthBuffer::DepthBuffer()
    : ImageBuffer()
{
}

//virtual
void DepthBuffer::Initialize(Device*               device,
                             uint32_t              width,
                             uint32_t              height,
                             VkFormat              depthFormat)
{
    m_owner = device;
    ImageBuffer::Initialize(device,
                            width,
                            height,
                            VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT,
                            VK_IMAGE_ASPECT_DEPTH_BIT,
                            depthFormat,
                            1,
                            VK_SAMPLE_COUNT_1_BIT);
}

} // Vulkan namespace
