PeriDyno 1.0.0
Loading...
Searching...
No Matches
vks::Texture2DArray Class Reference

#include <VulkanTexture.h>

Inheritance diagram for vks::Texture2DArray:
Collaboration diagram for vks::Texture2DArray:

Public Member Functions

void loadFromFile (std::string filename, VkFormat format, VkImageUsageFlags imageUsageFlags=VK_IMAGE_USAGE_SAMPLED_BIT, VkImageLayout imageLayout=VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL)
 
- Public Member Functions inherited from vks::Texture
 Texture ()
 
void updateDescriptor ()
 
void destroy ()
 
ktxResult loadKTXFile (std::string filename, ktxTexture **target)
 
VkDescriptorImageInfo & descriptorInfo ()
 

Additional Inherited Members

- Protected Attributes inherited from vks::Texture
dyno::VkContextctx
 
VkImage image
 
VkImageLayout imageLayout
 
VkDeviceMemory deviceMemory
 
VkImageView view
 
uint32_t width
 
uint32_t height
 
uint32_t mipLevels
 
uint32_t layerCount
 
VkDescriptorImageInfo descriptor
 
VkSampler sampler
 

Detailed Description

Definition at line 75 of file VulkanTexture.h.

Member Function Documentation

◆ loadFromFile()

void vks::Texture2DArray::loadFromFile ( std::string filename,
VkFormat format,
VkImageUsageFlags imageUsageFlags = VK_IMAGE_USAGE_SAMPLED_BIT,
VkImageLayout imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL )

Load a 2D texture array including all mip levels

Parameters
filenameFile to load (supports .ktx)
formatVulkan format of the image data stored in the file
deviceVulkan device to create the texture on
copyQueueQueue used for the texture staging copy commands (must support transfer)
(Optional)imageUsageFlags Usage flags for the texture's image (defaults to VK_IMAGE_USAGE_SAMPLED_BIT)
(Optional)imageLayout Usage layout for the texture (defaults VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL)

Definition at line 520 of file VulkanTexture.cpp.

Here is the call graph for this function:

The documentation for this class was generated from the following files: