![]() |
Vireo
0.0
Vireo 3D Rendering Hardware Interface
|
A descriptor set layout object. Describes resources that shaders can use. Add resources with add()
then call build()
to build the layout. Note that samplers must be bounds to a specific sampler-only layout.
Manual page : Descriptor Layout
Public Member Functions | |
virtual DescriptorLayout & | add (DescriptorIndex index, DescriptorType type, size_t count=1) = 0 |
virtual void | build () |
auto | getCapacity () const |
auto | isDynamicUniform () const |
auto | isSamplers () const |
virtual | ~DescriptorLayout () = default |
DescriptorLayout (DescriptorLayout &) = delete | |
DescriptorLayout & | operator= (const DescriptorLayout &) = delete |
Protected Member Functions | |
DescriptorLayout (const bool samplers, const bool dynamic) | |
Protected Attributes | |
size_t | capacity {0} |
bool | samplers {false} |
bool | dynamic {false} |
|
virtualdefault |
|
delete |
|
inlineprotected |
|
pure virtual |
Add a resource to the layout
index | Binding index |
type | Type of resource |
count | Number of instances |
|
inlinevirtual |
Build the layout after adding resource descriptions with add()
|
inline |
Returns the total number of resources instances
|
inline |
Returns true
if the layout describes one dynamic uniform buffer
|
inline |
Returns true
if the layout is for samplers only
|
delete |
|
protected |
|
protected |
|
protected |