|
| | GPUResourceSetBindings ()=default |
| |
| | GPUResourceSetBindings (InitializerList< Pair< UInt32, Variant< GPUResourceBinding, InitializerList< GPUResourceBinding > > > > initializer) |
| | Initializes a new GPUResourceSetBindings object with one or more bindings per slot.
|
| |
| const GPUResourceBinding * | get (const UInt32 slot, const UInt32 index=0) const |
| | Gets a GPUResourceBinding by it's reflection slot and index.
|
| |
| GPUResourceBinding * | get (const UInt32 slot, const UInt32 index=0) |
| | Gets a GPUResourceBinding by it's reflection slot and index.
|
| |
| GPUResourceBinding & | set (const UInt32 slot, const UInt32 index, GPUResourceBinding binding) |
| | Sets the GPUResourceBinding for the given binding slot and index.
|
| |
| GPUResourceBinding & | set (UInt32 slot, GPUResourceBinding binding) |
| | Sets the GPUResourceBinding for the given binding slot and index.
|
| |
| UInt32 | add (const UInt32 slot, GPUResourceBinding binding) |
| | Adds a new GPUResourceBinding for the given binding slot.
|
| |
| void | remove (const UInt32 slot, const UInt32 index) |
| | Removes a GPUResourceBinding for the given binding slot and index.
|
| |
| void | remove (UInt32 slot) |
| | Removes a GPUResourceBinding for the given binding slot.
|
| |
| UInt32 | size (const UInt32 slot) const |
| | Gets the number of GPUResourceBinding by on the given slot.
|
| |
| UInt32 | size () const |
| | Gets the total number of GPUResourceBinding on the bindings object.
|
| |
| GPUResourceSetBindingSlot | operator[] (UInt32 slot) |
| | Helper method to have expressive access of the resource bindings.
|
| |
| GPUResourceSetConstBindingSlot | operator[] (UInt32 slot) const |
| | Helper method to have expressive access of the resource bindings.
|
| |
| Generator< Pair< Pair< UInt32, UInt32 >, GPUResourceBinding & > > | forEach () |
| | Iterates over each of the entries in the GPUResourceSetBindings.
|
| |
| Generator< Pair< Pair< UInt32, UInt32 >, const GPUResourceBinding & > > | forEach () const |
| | Iterates over each of the entries in the GPUResourceSetBindings.
|
| |
| GPUResourceSetDescriptor | createDescriptor () const & |
| |
| GPUResourceSetDescriptor | createDescriptor () && |
| |
| void | reserve (size_type newCapacity) |
| | Tries to increase capacity by allocating additional memory.
|
| |
| template<typename K = Key> |
| void | resize (const K &key, size_type newSize, const Value &value=Value()) |
| | Resizes the container and ensures that there are exactly newSize items on the given key.
|
| |
| template<typename K = Key> |
| void | clear (const K &key) |
| | Clears all values of the given key.
|
| |
|
| auto | keys () const |
| | Gets a range that iterates over all the keys on the map.
|
| |
| template<typename K = Key> |
| auto | values (const K &key) const |
| | Gets a range that iterates over all values of the given key.
|
| |
| template<typename K = Key> |
| auto | values (const Key &key) |
| | Gets a range that iterates over all values of the given key.
|
| |
| template<typename K = Key> |
| mapped_type & | at (const K &key, size_t index) |
| | Gets the index-th value for the given key.
|
| |
| template<typename K = Key> |
| const mapped_type & | at (const K &key, size_t index) const |
| | Gets the index-th value for the given key.
|
| |
| template<typename K = Key> |
| bool | contains (const K &key, size_t index) const |
| | Returns true if the container contains an element at index with key equivalent to key, otherwise returns false.
|
| |
| void | reserve (size_type newCapacity) |
| | Tries to increase capacity by allocating additional memory.
|
| |
| void | shrink_to_fit () |
| | Tries to reduce memory usage by freeing unused memory.
|
| |
| template<typename K = Key> |
| void | resize (const K &key, size_type newSize, const Value &value=Value()) |
| | Resizes the container and ensures that there are exactly newSize items on the given key.
|
| |
| template<typename K = Key> |
| void | clear (const K &key) |
| | Clears all values of the given key.
|
| |
| size_type | capacity () const |
| | Returns the number of elements that the container has currently allocated space for.
|
| |
| template<typename K = Key> |
| size_type | size (const K &key) const |
| | Computes the number of elements for the given key.
|
| |
| template<typename K = Key> |
| iterator | erase (const K &key, size_type index) const |
| | Erases the element at the given index for the given key.
|
| |
| template<typename K = Key, typename... Args> |
| mapped_type & | emplace_back (const K &key, Args &&... args) |
| | Emplaces a new element for key at the end of container.
|
| |
| template<typename K = Key> |
| mapped_type & | push_back (const K &key, const Value &value) |
| | Pushes a new element for key at the end of container.
|
| |
| template<typename K = Key> |
| mapped_type & | push_back (const K &key, Value &&value) |
| | Pushes a new element for key at the end of container.
|
| |
| template<typename K = Key> |
| const mapped_type & | operator() (const K &key, size_type index) const |
| |
| template<typename K = Key> |
| mapped_type & | operator() (const K &key, size_type index) |
| |
| static constexpr bool | has_reserve = requires(super & container) { container.reserve(size_type()); } |
| | Determines if the container has the reserve() method available.
|
| |
| static constexpr bool | has_shrink_to_fit = requires(super & container) { container.shrink_to_fit(); } |
| | Determines if the container has the shrink_to_fit() method available.
|
| |
| static constexpr bool | has_capacity |
| | Determines if the container has the capacity() method available.
|
| |
Tries to increase capacity by allocating additional memory.
If newCapacity > capacity(), the function allocates memory for new storage of capacity equal to the value of newCapacity, moves elements from old storage to new storage, and deallocates memory used by old storage. Otherwise the function does nothing.
This function does not change size of the container.
If the capacity is changed, all iterators and all references to the elements are invalidated. Otherwise, no iterators or references are invalidated.