class
TGpuParameterSet
template<bool IsRenderProxy>Templated version of GpuParameterSet that contains functionality for both main and render thread versions of stored data.
Public
Methods
~TGpuParameterSet<IsRenderProxy>
GetStructParameter
GetSampledTextureParameter
GetStorageTextureParameter
GetStorageBufferParameter
GetUniformBufferParameter
GetSamplerStateParameter
TryGetStructParameter
TryGetSampledTextureParameter
TryGetStorageTextureParameter
TryGetStorageBufferParameter
TryGetUniformBufferParameter
TryGetSamplerStateParameter
GetUniformBuffer
Gets a uniform buffer from the specified slot/array index combination.
GetSampledTexture
Gets a texture bound to the specified slot/array index combination.
GetStorageTexture
Gets a storage texture bound to the specified slot/array index combination.
GetStorageBuffer
Gets a buffer bound to the specified slot/array index combination.
GetSamplerState
Gets a sampler state bound to the specified slot/array index combination.
GetTextureSurface
Gets information that determines which texture surfaces to bind as a sampled texture parameter.
GetStorageTextureSurface
Gets information that determines which texture surfaces to bind as a storage texture parameter.
SetUniformBuffer
Sets an uniform buffer at the specified slot.
It is up to the caller to guarantee the provided buffer matches uniform descriptor for this slot.
- slot
- Slot at which to bind the buffer, as defined by the pipeline GPU program.
- buffer
- Buffer to bind.
- arrayIndex
- In case the bind point represents an array, index to bind the buffer to.
- offset
- Dynamic offset in the buffer, at which the to start reading the buffer.
Returns: Returns true if the operation succeeded, otherwise logs and errors and returns false.
SetUniformBuffer
Sets an uniform buffer with the specified name in all GPU programs containing a buffer with that name.
It is up to the caller to guarantee the provided buffer matches uniform buffer descriptor for this slot.
- name
- Name of the buffer to bind.
- buffer
- Buffer to bind.
- arrayIndex
- In case the bind point represents an array, index to bind the buffer to.
- offset
- Dynamic offset in the buffer, at which the to start reading the buffer.
Returns: Returns true if the operation succeeded, otherwise logs and errors and returns false.
TrySetUniformBuffer
Equivalent to SetUniformBuffer(const String & , const UniformBufferType & , u32, u32), but doesn't warn if the parameter cannot be found.
Return true if the parameter was found.
SetSampledTexture
Sets a texture at the specified slot.
Returns true if the operation succeeded, otherwise logs and errors and returns false.
SetStorageTexture
Sets a storage texture at the specified slot.
Returns true if the operation succeeded, otherwise logs and errors and returns false.
SetStorageBuffer
Sets a storage buffer at the specified slot combination.
- slot
- Slot at which to bind the buffer, as defined by the pipeline GPU program.
- buffer
- Buffer to bind.
- arrayIndex
- In case the bind point represents an array, index to bind the buffer to.
- view
- Optional view information that controls how is the buffer viewed when bound to the pipeline.
Returns: Returns true if the operation succeeded, otherwise logs and errors and returns false.
SetSamplerState
Sets a sampler state at the specified slot.
Returns true if the operation succeeded, otherwise logs and errors and returns false.
SetSampledTexture
Assigns a texture to the parameter with the specified name.
SetStorageTexture
Assigns a load/store texture to the parameter with the specified name.
SetStorageBuffer
Sets a storage buffer with the specified name.
- name
- Name of the buffer to bind.
- buffer
- Buffer to bind.
- arrayIndex
- In case the bind point represents an array, index to bind the buffer to.
- view
- Optional view information that controls how is the buffer viewed when bound to the pipeline.
SetSamplerState
Assigns a sampler state to the parameter with the specified name.