|
Foundation
|
Bindless Texture Pool implementation. More...
#include <TexturePool.hpp>
Public Member Functions | |
| TexturePool (RHIDevice *device, Allocator *allocator, uint32_t max_textures=128) | |
| TexturePoolHandle | Allocate (RHITextureDesc const &desc) |
| TexturePoolHandle | Allocate (RHITextureDesc const &desc, RHITextureViewDesc const &viewDesc) |
| TexturePoolHandle | Allocate (RHITextureView *view) |
| RHITexture * | GetTexture (TexturePoolHandle handle) const |
| RHITextureView * | GetTextureView (TexturePoolHandle handle) const |
| void | Free (TexturePoolHandle handle) |
| bool | Contains (TexturePoolHandle handle) const |
| RHIDeviceDescriptorSet * | GetDescriptorSet () const |
| RHIDeviceDescriptorSetLayout * | GetDescriptorSetLayout () const |
Private Member Functions | |
| void | SetMissingTexture (uint32_t index) |
Private Member Functions inherited from Foundation::RHI::RHIObject | |
| RHIObject ()=default | |
| RHIObject (RHIObject const &)=delete | |
| RHIObject & | operator= (const RHIObject &)=delete |
| RHIObject (RHIObject &&)=delete | |
| RHIObject & | operator= (RHIObject &&)=delete |
| virtual | ~RHIObject ()=default |
Bindless Texture Pool implementation.
See Examples::TexturePoolApp for reference usage.
| TexturePoolHandle TexturePool::Allocate | ( | RHITextureDesc const & | desc | ) |
| TexturePoolHandle TexturePool::Allocate | ( | RHITextureDesc const & | desc, |
| RHITextureViewDesc const & | viewDesc | ||
| ) |
| TexturePoolHandle TexturePool::Allocate | ( | RHITextureView * | view | ) |
|
inline |
| void TexturePool::Free | ( | TexturePoolHandle | handle | ) |
|
inline |
|
inline |
| RHITexture * TexturePool::GetTexture | ( | TexturePoolHandle | handle | ) | const |
| RHITextureView * TexturePool::GetTextureView | ( | TexturePoolHandle | handle | ) | const |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |