Class DescriptorSetLayoutBuilder
Helper class to build a DescriptorSetLayout.
public class DescriptorSetLayoutBuilder
- Inheritance
-
objectDescriptorSetLayoutBuilder
- Extension Methods
Properties
Hash
Gets a hash identifying the current state of a Descriptor Set. This hash is used to know if the Descriptors in the set can be shared.
public ObjectId Hash { get; }
Property Value
Methods
AddBinding(ParameterKey, string, EffectParameterClass, EffectParameterType, EffectParameterType, int, SamplerState?)
Adds a binding to the Descriptor Set layout.
public void AddBinding(ParameterKey key, string logicalGroup, EffectParameterClass @class, EffectParameterType type, EffectParameterType elementType, int arraySize = 1, SamplerState? immutableSampler = null)
Parameters
keyParameterKeyThe ParameterKey by which the Graphics Resource' Descriptor can be identified in the Shader.
logicalGroupstringA logical group name, used to group related Descriptors and variables together.
classEffectParameterClassThe kind of the parameter in the Shader.
typeEffectParameterTypeThe data type of the parameter in the Shader.
elementTypeEffectParameterTypeThe data type of the elements of the parameter in the Shader in case
Typerepresents an Array, Buffer, or Texture type.arraySizeintThe number of elements in the Array in case
Typerepresents an Array type. Specify1if the parameter is not an Array. This is the default value.immutableSamplerSamplerStateAn optional unmodifiable Sampler State described directly in the Shader for sampling the parameter. Specify null if the parameter does not require a Sampler State.