Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
|
Manages textures and samplers. More...
#include <foray_texturemanager.hpp>
Classes | |
struct | Texture |
Public Member Functions | |
void | Destroy () |
virtual | ~TextureManager () |
std::vector< VkDescriptorImageInfo > | GetDescriptorInfos (VkImageLayout layout=VkImageLayout::VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL) |
Texture & | PrepareTexture (int32_t texId) |
![]() | |
virtual Scene * | GetScene () override |
Scene this component is a part of. Casts mRegistry to Scene. | |
virtual Registry * | GetGlobals () override |
Global component registry. Returns mRegistry. | |
virtual core::Context * | GetContext () override |
Vulkan Context. Casts mRegistry to Scene and returns Scene->GetContext() | |
![]() | |
virtual | ~Component () |
Destructor. Provide virtual constructors in inheriting classes, to make sure they get finalized correctly. | |
![]() | |
NoMoveDefaults ()=default | |
NoMoveDefaults (const NoMoveDefaults &other)=delete | |
NoMoveDefaults (NoMoveDefaults &&other)=default | |
NoMoveDefaults & | operator= (const NoMoveDefaults &other)=delete |
Protected Attributes | |
std::unordered_map< int32_t, Texture > | mTextures |
![]() | |
Registry * | mRegistry = nullptr |
std::string | mName = "" |
Additional Inherited Members | |
![]() | |
friend | Registry |
![]() | |
virtual void | __makeMePolymorphic () |
Manages textures and samplers.
|
inlinevirtual |
void foray::scene::gcomp::TextureManager::Destroy | ( | ) |
std::vector< VkDescriptorImageInfo > foray::scene::gcomp::TextureManager::GetDescriptorInfos | ( | VkImageLayout | layout = VkImageLayout::VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL | ) |
|
inline |
|
protected |