Vireo  0.0
Vireo 3D Rendering Hardware Interface
DescriptorLayout Class Referenceabstract

Detailed Description

Describes the binding slots of a descriptor set. Created by Vireo.create_descriptor_layout(). Must be built with build() before creating descriptor sets.

Lua full name: vireo.DescriptorLayout

Public Member Functions

DescriptorLayout add (index: vireo.DescriptorIndex, type: DescriptorType, count: integer|nil)
 Declares a binding at the given index with the specified type and optional array count. Returns self for method chaining. More...
 
nil build ()
 Finalizes the layout. Must be called before passing to Vireo.create_descriptor_set(). More...
 

Properties

integer capacity
 Number of binding slots declared in this layout. (read-only)
 
boolean is_dynamic_uniform
 True if this layout was created for dynamic uniform buffer bindings. (read-only)
 
boolean is_samplers
 True if this layout was created for sampler-only bindings. (read-only)
 

Member Function Documentation

DescriptorLayout add ( vireo.DescriptorIndex  index,
DescriptorType  type,
integer|nil  count)

Declares a binding at the given index with the specified type and optional array count. Returns self for method chaining.

Parameters
indexvireo.DescriptorIndex
typeDescriptorType
countinteger|nil
Returns
DescriptorLayout
nil build ( )

Finalizes the layout. Must be called before passing to Vireo.create_descriptor_set().

Property Documentation

integer capacity

Number of binding slots declared in this layout. (read-only)

boolean is_dynamic_uniform

True if this layout was created for dynamic uniform buffer bindings. (read-only)

boolean is_samplers

True if this layout was created for sampler-only bindings. (read-only)