18#ifndef INCLUDED_RENDERER_BACKEND_VULKAN_TEXTURE
19#define INCLUDED_RENDERER_BACKEND_VULKAN_TEXTURE
26#include <glad/vulkan.h>
85 static std::unique_ptr<CTexture>
Create(
92 CDevice* device,
const char* name,
const VkImage image,
const VkFormat format,
Definition: ITexture.h:34
Type
Definition: ITexture.h:37
Definition: SwapChain.h:44
bool IsCompareEnabled()
Definition: Texture.h:61
VkImageView m_AttachmentImageView
Definition: Texture.h:112
Type GetType() const override
Definition: Texture.h:47
uint32_t GetUsage() const override
Definition: Texture.h:48
static std::unique_ptr< CTexture > Create(CDevice *device, const char *name, const Type type, const uint32_t usage, const Format format, const uint32_t width, const uint32_t height, const Sampler::Desc &defaultSamplerDesc, const uint32_t MIPLevelCount, const uint32_t sampleCount)
Definition: Texture.cpp:37
VkImageAspectFlags GetSamplerImageAspectMask()
Definition: Texture.h:65
DeviceObjectUID m_UID
Definition: Texture.h:119
static std::unique_ptr< CTexture > CreateReadback(CDevice *device, const char *name, const Format format, const uint32_t width, const uint32_t height)
Definition: Texture.cpp:295
uint32_t m_MIPLevelCount
Definition: Texture.h:105
bool IsInitialized() const
Definition: Texture.h:74
uint32_t m_Width
Definition: Texture.h:103
bool m_IsCompareEnabled
Definition: Texture.h:115
uint32_t GetSampleCount() const
Definition: Texture.h:54
Format GetFormat() const override
Definition: Texture.h:49
VmaAllocation m_Allocation
Definition: Texture.h:116
void * GetMappedData()
Definition: Texture.h:70
void SetInitialized()
Definition: Texture.h:75
uint32_t GetMIPLevelCount() const override
Definition: Texture.h:53
VkImageView m_SamplerImageView
Definition: Texture.h:113
VkImageView GetAttachmentImageView()
Definition: Texture.h:58
VkImageAspectFlags m_AttachmentImageAspectMask
Definition: Texture.h:124
static std::unique_ptr< CTexture > WrapBackbufferImage(CDevice *device, const char *name, const VkImage image, const VkFormat format, const VkImageUsageFlags usage, const uint32_t width, const uint32_t height)
Definition: Texture.cpp:242
uint32_t m_Height
Definition: Texture.h:104
DeviceObjectUID GetUID() const
Definition: Texture.h:77
CDevice * m_Device
Definition: Texture.h:109
VkSampler m_Sampler
Definition: Texture.h:114
VkImageView GetSamplerImageView()
Definition: Texture.h:59
uint32_t m_LayerCount
Definition: Texture.h:107
Format m_Format
Definition: Texture.h:101
~CTexture() override
Definition: Texture.cpp:362
VkImageAspectFlags m_SamplerImageAspectMask
Definition: Texture.h:125
VkDeviceMemory GetDeviceMemory()
Definition: Texture.h:72
uint32_t m_SampleCount
Definition: Texture.h:106
VkSampler GetSampler()
Definition: Texture.h:60
VkFormat GetVkFormat() const
Definition: Texture.h:62
VkImage GetImage()
Definition: Texture.h:57
uint32_t m_Usage
Definition: Texture.h:100
VkImage m_Image
Definition: Texture.h:111
VkFormat m_VkFormat
Definition: Texture.h:102
VkImageAspectFlags GetAttachmentImageAspectMask()
Definition: Texture.h:64
bool m_Initialized
Definition: Texture.h:130
uint32_t GetLayerCount() const
Definition: Texture.h:55
uint32_t GetWidth() const override
Definition: Texture.h:51
uint32_t GetHeight() const override
Definition: Texture.h:52
IDevice * GetDevice() override
Definition: Texture.cpp:379
Type m_Type
Definition: Texture.h:99
CTexture(CDevice *device)
Definition: Texture.cpp:357
VmaAllocationInfo m_AllocationInfo
Definition: Texture.h:117
static constexpr DeviceObjectUID INVALID_DEVICE_OBJECT_UID
Definition: DeviceObjectUID.h:41
uint32_t DeviceObjectUID
Unique identifier for a device object.
Definition: DeviceObjectUID.h:40
Format
Definition: Format.h:28
Backend
Definition: Backend.h:28
Definition: VideoMode.h:29
unsigned int uint32_t
Definition: wposix_types.h:53