ngscopeclient 0.1-dev+51fbda87c
|
Encapsulates the various Vulkan objects we need to represent texture image memory. More...
#include <TextureManager.h>
Public Member Functions | |
Texture (const vk::raii::Device &device, const vk::ImageCreateInfo &imageInfo, const vk::raii::Buffer &srcBuf, int width, int height, TextureManager *mgr, const std::string &name="") | |
Creates a texture from an externally supplied staging buffer. | |
Texture (const vk::raii::Device &device, const vk::ImageCreateInfo &imageInfo, TextureManager *mgr, const std::string &name="") | |
ImTextureID | GetTexture () |
vk::ImageView | GetView () |
vk::Image | GetImage () |
void | SetName (const std::string &name) |
Protected Member Functions | |
void | LayoutTransition (vk::raii::CommandBuffer &cmdBuf, vk::AccessFlags src, vk::AccessFlags dst, vk::ImageLayout from, vk::ImageLayout to) |
Encapsulates the various Vulkan objects we need to represent texture image memory.
We don't do multitexturing at the moment, so each texture has its own single-binding descriptor set