vOOlkan
An object oriented approach to Vulkan
|
A Set is a set of bindings which can be read by the shader. More...
#include <Set.h>
Classes | |
struct | BindingInfo |
A struct containing all of the information of a specific binding. This class must be the base of other classes. More... | |
Public Member Functions | |
const VkDescriptorSetLayout & | operator+ () const |
Returns the underlying VkDescriptorSetLayout object. More... | |
int | getAmountOfBindings () const |
Returns the number of bindings in this set. More... | |
const std::vector< std::unique_ptr< BindingInfo > > & | getBindingsInfo () const |
Returns the size, offset and buffer of each binding in this set. More... | |
const BindingInfo & | getBindingInfo (int i) const |
Returns the size, offset and buffer of the binding number i of this set. More... | |
Protected Member Functions | |
Set (const LogicalDevice &virtualGpu) | |
Set (const Set &)=delete | |
Set & | operator= (const Set &)=delete |
Set (Set &&)=delete | |
Set & | operator= (Set &&)=delete |
~Set () | |
template<std::same_as< std::pair< VkShaderStageFlagBits, VkDescriptorType > >... ShaderStages> | |
void | createDescriptorSetLayout (ShaderStages... shaderStages) |
Protected Attributes | |
VkDescriptorSetLayout | descriptorSetLayout |
std::vector< std::unique_ptr< BindingInfo > > | bindingsInfo |
const LogicalDevice & | virtualGpu |
A Set is a set of bindings which can be read by the shader.
A Set keeps all the information about its bindings, such as their size, their buffer and the offset in such buffer. This way it is possible to instantiate a DescriptorSet starting from a Set only.
|
inlineprotected |
|
protecteddelete |
|
protecteddelete |
|
inlineprotected |
|
inlineprotected |
|
inline |
Returns the number of bindings in this set.
|
inline |
Returns the size, offset and buffer of the binding number i of this set.
|
inline |
Returns the size, offset and buffer of each binding in this set.
|
inline |
Returns the underlying VkDescriptorSetLayout object.
|
protected |
|
protected |
|
protected |