25 Texture(
Device &device, VkFormat format, VkExtent3D extent, VkImageUsageFlags usage, VkSampleCountFlagBits sampleCount);
34 void transitionLayout(VkCommandBuffer commandBuffer, VkImageLayout oldLayout, VkImageLayout newLayout)
const;
void transitionLayout(VkCommandBuffer commandBuffer, VkImageLayout oldLayout, VkImageLayout newLayout) const
VkSampler m_textureSampler
VkDeviceMemory m_textureImageMemory
VkDescriptorImageInfo getImageInfo() const
VkImageView imageView() const
VkImageView getImageView() const
VkFormat getFormat() const
Texture & operator=(const Texture &)=delete
void createTextureImageView(VkImageViewType viewType)
VkImageLayout getImageLayout() const
VkExtent3D getExtent() const
VkDescriptorImageInfo m_descriptor
void createTextureImage(const std::string &filepath)
VkImageView m_textureImageView
Texture & operator=(Texture &&)=delete
Texture(Texture &&)=delete
void createTextureSampler()
VkSampler sampler() const
Texture(Device &device, const std::string &textureFilepath)
Texture(const Texture &)=delete
VkImageLayout m_textureLayout