Vulkan 2D texture: image + view + sampler, with per-swapchain-image descriptor sets.
More...
#include <VulkanTexture.hpp>
Vulkan 2D texture: image + view + sampler, with per-swapchain-image descriptor sets.
Definition at line 12 of file VulkanTexture.hpp.
◆ VulkanTexture()
| Sleak::RenderEngine::VulkanTexture::VulkanTexture |
( |
VkDevice | device, |
|
|
VkPhysicalDevice | physicalDevice, |
|
|
VkCommandPool | commandPool, |
|
|
VkQueue | graphicsQueue ) |
◆ ~VulkanTexture()
| Sleak::RenderEngine::VulkanTexture::~VulkanTexture |
( |
| ) |
|
|
override |
◆ Bind()
| void Sleak::RenderEngine::VulkanTexture::Bind |
( |
uint32_t | slot = 0 | ) |
const |
|
overridevirtual |
◆ GetDescriptorSets()
| const std::vector< VkDescriptorSet > & Sleak::RenderEngine::VulkanTexture::GetDescriptorSets |
( |
| ) |
const |
|
inline |
◆ GetFormat()
| TextureFormat Sleak::RenderEngine::VulkanTexture::GetFormat |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetHeight()
| uint32_t Sleak::RenderEngine::VulkanTexture::GetHeight |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetImageView()
| VkImageView Sleak::RenderEngine::VulkanTexture::GetImageView |
( |
| ) |
const |
|
inline |
◆ GetImGuiTextureID()
| uint64_t Sleak::RenderEngine::VulkanTexture::GetImGuiTextureID |
( |
| ) |
const |
|
overridevirtual |
◆ GetLodBias()
| float Sleak::RenderEngine::VulkanTexture::GetLodBias |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetSampler()
| VkSampler Sleak::RenderEngine::VulkanTexture::GetSampler |
( |
| ) |
const |
|
inline |
◆ GetType()
| TextureType Sleak::RenderEngine::VulkanTexture::GetType |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetWidth()
| uint32_t Sleak::RenderEngine::VulkanTexture::GetWidth |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ HasDescriptorSets()
| bool Sleak::RenderEngine::VulkanTexture::HasDescriptorSets |
( |
| ) |
const |
|
inline |
◆ LoadFromFile()
| bool Sleak::RenderEngine::VulkanTexture::LoadFromFile |
( |
const std::string & | filePath | ) |
|
|
overridevirtual |
◆ LoadFromMemory()
| bool Sleak::RenderEngine::VulkanTexture::LoadFromMemory |
( |
const void * | data, |
|
|
uint32_t | width, |
|
|
uint32_t | height, |
|
|
TextureFormat | format ) |
|
overridevirtual |
◆ SetDescriptorSets()
| void Sleak::RenderEngine::VulkanTexture::SetDescriptorSets |
( |
std::vector< VkDescriptorSet > | sets | ) |
|
|
inline |
◆ SetFilter()
| void Sleak::RenderEngine::VulkanTexture::SetFilter |
( |
TextureFilter | filter | ) |
|
|
overridevirtual |
◆ SetLodBias()
| void Sleak::RenderEngine::VulkanTexture::SetLodBias |
( |
float | bias | ) |
|
|
overridevirtual |
◆ SetMaxMipLevels()
| void Sleak::RenderEngine::VulkanTexture::SetMaxMipLevels |
( |
uint32_t | levels | ) |
|
|
inline |
◆ SetWrapMode()
| void Sleak::RenderEngine::VulkanTexture::SetWrapMode |
( |
TextureWrapMode | wrapMode | ) |
|
|
overridevirtual |
◆ Unbind()
| void Sleak::RenderEngine::VulkanTexture::Unbind |
( |
| ) |
const |
|
overridevirtual |