![]()  | 
  
    PeriDyno 1.2.1
    
   | 
 
#include <VulkanTexture.h>


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::VkContext * | ctx | 
| VkImage | image | 
| VkImageLayout | imageLayout | 
| VkDeviceMemory | deviceMemory | 
| VkImageView | view | 
| uint32_t | width | 
| uint32_t | height | 
| uint32_t | mipLevels | 
| uint32_t | layerCount | 
| VkDescriptorImageInfo | descriptor | 
| VkSampler | sampler | 
Definition at line 85 of file VulkanTexture.h.
| void vks::TextureCubeMap::loadFromFile | ( | std::string | filename, | 
| VkFormat | format, | ||
| VkImageUsageFlags | imageUsageFlags = VK_IMAGE_USAGE_SAMPLED_BIT, | ||
| VkImageLayout | imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL ) | 
Load a cubemap texture including all mip levels from a single file
| filename | File to load (supports .ktx) | 
| format | Vulkan format of the image data stored in the file | 
| device | Vulkan device to create the texture on | 
| copyQueue | Queue 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 704 of file VulkanTexture.cpp.
