class
GpuPipelineParameterSetLayout
Contains information about a single GPU program parameter set.
Public
Methods
~GpuPipelineParameterSetLayout
GetResourceCount
Returns the total number of elements in the set.
GetResourceCount
Returns the number of elements in a particular set for the specified parameter type.
GetBindingCount
Returns the total number of binding slots in the set.
GetBindingCount
Returns the number of binding slots in the set for the specified parameter type.
GetSequentialResourceIndex
Converts a slot/array index combination into a sequential index that maps to the parameter in that parameter type's array.
The sequential index is relative to the set.
If the slot or array index is out of valid range, the method logs an error and returns ~0u. Only performs range checking in debug mode.
GetSequentialBindingIndex
Converts a slot into a sequential index that maps to the parameter in that parameter type's array.
This is similar to GetSequentialResourceIndex(), but does not account for array indices. The sequential index is relative to the set.
If the slot is out of valid range, the method logs an error and returns ~0u. Only performs range checking in debug mode.
GetSlot
Retrieves a slot from sequential binding index.
GetSlot
Finds slot index of a parameter with the specified name.
Slot index is set to ~0u if parameter cannot be found.
GetArraySize
Returns the number of entries in the array at the specified sequential binding index.
GetDynamicOffsetCount
Returns the number of dynamic offset slots in the set.
GetDynamicOffsetIndex
Returns an index that can be used for applying a dynamic offset for buffer lookup.
The index can be provided to the command buffer after GpuParameterSet using this layout have been bound on the command buffer.
Returns ~0u if parameter at the specific slot doesn't support dynamic offsets (supported on uniform and storage buffers), or if the parameter is not found.
GetDynamicOffsetIndex
Returns an index that can be used for applying a dynamic offset for buffer lookup.
The index can be provided to the command buffer after GpuParameterSet using this layout have been bound on the command buffer.
Returns ~0u if parameter at the specific set/slot combination doesn't support dynamic offsets (supported on uniform and storage buffers), or if the parameter is not found.
HasUniform
Returns true if the layout has a uniform with the specified name.
HasUniformOfType
Returns true if the layout has a uniform with the specified name and type.
TryGetUniformInformation
Returns information about a uniform parameter by the specified name, or null if not found.
TryGetUniformInformation
Returns information about a uniform parameter by the specified type and sequential index, or null if not found.
TryGetUniformInformation
Returns information about a uniform parameter by the specified slot, or null if not found.
HasUniformBufferMember
Returns true if the layout has a uniform buffer member with the specified name in the set.
TryGetUniformBufferMemberInformation
Returns information about a member of a uniform buffer by the specified name, or null if not found.
Protected
Constructors
GpuPipelineParameterSetLayout
Fields
mUniformsPerType
mResourceCountPerType
mUniformBufferMembers
All data parameters in all uniform buffers.
mResourceCount
mBindingCount
mDynamicOffsetCount
Number of dynamic offset slots in this set.