|
Foundation
|
#include <Bindless.hpp>
Classes | |
| struct | Binding |
| struct | BindlessPoolDesc |
Public Member Functions | |
| BindlessPool (RHIDevice *device, Allocator *allocator, BindlessPoolDesc const &desc) | |
| uint32_t | Allocate (RHITextureView *view) |
| uint32_t | Allocate (RHIDeviceScopedHandle< RHITexture > &&texture, RHITextureView *view) |
| Takes ownership of the texture, and creates a binding for it. | |
| void | Free (uint32_t id) |
| Free a binding, and - with it - the owned resource (if any). | |
| Resource & | GetResource (uint32_t id) |
| View & | GetView (uint32_t id) |
| RHIDeviceDescriptorSetLayout * | GetDescriptorSetLayout () const |
| RHIDeviceDescriptorSet * | GetDescriptorSet () const |
Public Attributes | |
| const BindlessPoolDesc | mDesc |
Private Types | |
| using | Resource = Variant< RHITexture *, RHIDeviceScopedHandle< RHITexture > > |
| using | View = Variant< RHITextureView *, RHITextureScopedHandle< RHITextureView > > |
Private Member Functions | |
| uint32_t | Update (uint32_t id, RHITextureView *view) |
|
private |
|
private |
| Foundation::RenderCore::BindlessPool::BindlessPool | ( | RHIDevice * | device, |
| Allocator * | allocator, | ||
| BindlessPoolDesc const & | desc | ||
| ) |
| uint32_t Foundation::RenderCore::BindlessPool::Allocate | ( | RHIDeviceScopedHandle< RHITexture > && | texture, |
| RHITextureView * | view | ||
| ) |
Takes ownership of the texture, and creates a binding for it.
| uint32_t Foundation::RenderCore::BindlessPool::Allocate | ( | RHITextureView * | view | ) |
@breif Create a binding for the given texture view, with ownership remaining with the caller.
Free a binding, and - with it - the owned resource (if any).
|
inline |
|
inline |
|
private |
|
private |
| const BindlessPoolDesc Foundation::RenderCore::BindlessPool::mDesc |
|
private |
|
private |
|
private |
|
private |
|
private |