#include <vkTexture.h>
|
| vkTexture (const Device &device) |
|
| vkTexture (const Device &device, const Command &command, std::filesystem::path imageFile, Texture::Type type, VkSampleCountFlagBits msaaSamples=VK_SAMPLE_COUNT_1_BIT) |
|
| vkTexture (const Device &device, const Command &command, uint32_t width, uint32_t height, uint32_t channels, VkFormat format, VkSampleCountFlagBits msaaSamples=VK_SAMPLE_COUNT_1_BIT) |
|
| vkTexture (const Device &device, const Command &command, uint32_t width, uint32_t height, uint32_t channels, VkFormat format, std::vector< std::byte > pixels, VkSampleCountFlagBits msaaSamples=VK_SAMPLE_COUNT_1_BIT) |
|
const VkImageView & | getVkImageView () const |
|
| ~vkTexture () |
|
void | bind (unsigned unit) |
|
void | replace (const Command &command, uint32_t width, uint32_t height, uint32_t channels, VkFormat format, std::vector< std::byte > pixels) |
|
| Texture () |
|
virtual | ~Texture ()=default |
|
bool | operator== (const Texture &rhs) const |
|
const Id & | getId () const |
|
const glm::ivec3 | size () const |
|
|
void | transitionImageLayout (const Command &command, VkFormat format, VkImageLayout oldLayout, VkImageLayout newLayout) |
|
void | copyBufferToImage (const Command &command, Buffer &buffer, uint32_t width, uint32_t height) |
|
void | uploadImage (const Command &command, std::vector< std::byte > pixels, VkFormat format, uint32_t width, uint32_t height, uint32_t channels) |
|
◆ vkTexture() [1/4]
jGL::Vulkan::vkTexture::vkTexture |
( |
const Device & |
device | ) |
|
◆ vkTexture() [2/4]
jGL::Vulkan::vkTexture::vkTexture |
( |
const Device & |
device, |
|
|
const Command & |
command, |
|
|
std::filesystem::path |
imageFile, |
|
|
Texture::Type |
type, |
|
|
VkSampleCountFlagBits |
msaaSamples = VK_SAMPLE_COUNT_1_BIT |
|
) |
| |
◆ vkTexture() [3/4]
jGL::Vulkan::vkTexture::vkTexture |
( |
const Device & |
device, |
|
|
const Command & |
command, |
|
|
uint32_t |
width, |
|
|
uint32_t |
height, |
|
|
uint32_t |
channels, |
|
|
VkFormat |
format, |
|
|
VkSampleCountFlagBits |
msaaSamples = VK_SAMPLE_COUNT_1_BIT |
|
) |
| |
◆ vkTexture() [4/4]
jGL::Vulkan::vkTexture::vkTexture |
( |
const Device & |
device, |
|
|
const Command & |
command, |
|
|
uint32_t |
width, |
|
|
uint32_t |
height, |
|
|
uint32_t |
channels, |
|
|
VkFormat |
format, |
|
|
std::vector< std::byte > |
pixels, |
|
|
VkSampleCountFlagBits |
msaaSamples = VK_SAMPLE_COUNT_1_BIT |
|
) |
| |
◆ ~vkTexture()
jGL::Vulkan::vkTexture::~vkTexture |
( |
| ) |
|
|
inline |
◆ bind()
void jGL::Vulkan::vkTexture::bind |
( |
unsigned |
unit | ) |
|
|
inlinevirtual |
◆ copyBufferToImage()
void jGL::Vulkan::vkTexture::copyBufferToImage |
( |
const Command & |
command, |
|
|
Buffer & |
buffer, |
|
|
uint32_t |
width, |
|
|
uint32_t |
height |
|
) |
| |
|
protected |
◆ getVkImageView()
const VkImageView & jGL::Vulkan::vkTexture::getVkImageView |
( |
| ) |
const |
|
inline |
◆ replace()
void jGL::Vulkan::vkTexture::replace |
( |
const Command & |
command, |
|
|
uint32_t |
width, |
|
|
uint32_t |
height, |
|
|
uint32_t |
channels, |
|
|
VkFormat |
format, |
|
|
std::vector< std::byte > |
pixels |
|
) |
| |
◆ transitionImageLayout()
void jGL::Vulkan::vkTexture::transitionImageLayout |
( |
const Command & |
command, |
|
|
VkFormat |
format, |
|
|
VkImageLayout |
oldLayout, |
|
|
VkImageLayout |
newLayout |
|
) |
| |
|
protected |
◆ uploadImage()
void jGL::Vulkan::vkTexture::uploadImage |
( |
const Command & |
command, |
|
|
std::vector< std::byte > |
pixels, |
|
|
VkFormat |
format, |
|
|
uint32_t |
width, |
|
|
uint32_t |
height, |
|
|
uint32_t |
channels |
|
) |
| |
|
protected |
◆ channels
uint32_t jGL::Vulkan::vkTexture::channels |
|
protected |
◆ device
const Device& jGL::Vulkan::vkTexture::device |
|
protected |
◆ format
VkFormat jGL::Vulkan::vkTexture::format |
|
protected |
◆ height
uint32_t jGL::Vulkan::vkTexture::height |
|
protected |
◆ image
VkImage jGL::Vulkan::vkTexture::image |
|
protected |
◆ imageMemory
VkDeviceMemory jGL::Vulkan::vkTexture::imageMemory |
|
protected |
◆ imageView
VkImageView jGL::Vulkan::vkTexture::imageView |
|
protected |
◆ msaaSamples
VkSampleCountFlagBits jGL::Vulkan::vkTexture::msaaSamples |
|
protected |
◆ width
uint32_t jGL::Vulkan::vkTexture::width |
|
protected |
The documentation for this class was generated from the following files: