Table of Contents

Class DescriptorSetLayoutBuilder

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

Helper class to build a DescriptorSetLayout.

public class DescriptorSetLayoutBuilder
Inheritance
object
DescriptorSetLayoutBuilder
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

ObjectId

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

key ParameterKey

The ParameterKey by which the Graphics Resource' Descriptor can be identified in the Shader.

logicalGroup string

A logical group name, used to group related Descriptors and variables together.

class EffectParameterClass

The kind of the parameter in the Shader.

type EffectParameterType

The data type of the parameter in the Shader.

elementType EffectParameterType

The data type of the elements of the parameter in the Shader in case Type represents an Array, Buffer, or Texture type.

arraySize int

The number of elements in the Array in case Type represents an Array type. Specify 1 if the parameter is not an Array. This is the default value.

immutableSampler SamplerState

An optional unmodifiable Sampler State described directly in the Shader for sampling the parameter. Specify null if the parameter does not require a Sampler State.