Add file structure to code
- Rename project to CopiumEngine
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#pragma once
|
||||
|
||||
#include "copium/core/Instance.h"
|
||||
#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(Instance& instance, int width, int height);
|
||||
~DepthAttachment() override;
|
||||
|
||||
VkDescriptorImageInfo GetDescriptorImageInfo(int index) const override;
|
||||
VkImageView GetImageView() const;
|
||||
|
||||
private:
|
||||
void InitializeDepthAttachment(int width, int height);
|
||||
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user