Files
Copium/CopiumEngine/src/copium/sampler/DepthAttachment.h
T
2023-04-04 21:14:01 +02:00

29 lines
606 B
C++

#pragma once
#include "copium/sampler/Sampler.h"
#include "copium/util/Common.h"
#include <vulkan/vulkan.hpp>
namespace Copium
{
class DepthAttachment final : public Sampler
{
CP_DELETE_COPY_AND_MOVE_CTOR(DepthAttachment);
private:
VkImage image;
VkDeviceMemory imageMemory;
VkImageView imageView;
public:
DepthAttachment(int width, int height);
~DepthAttachment() override;
VkDescriptorImageInfo GetDescriptorImageInfo(int index) const override;
VkImageView GetImageView() const;
private:
void InitializeDepthAttachment(int width, int height);
};
}