Table of Contents

Struct DescriptorSet

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

Contains a list descriptors (such as textures) that can be bound together to the graphics pipeline.

public struct DescriptorSet
Inherited Members

Properties

IsValid

public bool IsValid { get; }

Property Value

bool

Methods

New(GraphicsDevice, DescriptorPool, DescriptorSetLayout)

public static DescriptorSet New(GraphicsDevice graphicsDevice, DescriptorPool pool, DescriptorSetLayout desc)

Parameters

graphicsDevice GraphicsDevice
pool DescriptorPool
desc DescriptorSetLayout

Returns

DescriptorSet

SetConstantBuffer(int, Buffer, int, int)

Sets a constant buffer view descriptor.

public void SetConstantBuffer(int slot, Buffer buffer, int offset, int size)

Parameters

slot int

The slot.

buffer Buffer

The constant buffer.

offset int

The constant buffer view start offset.

size int

The constant buffer view size.

SetSamplerState(int, SamplerState)

Sets a sampler state descriptor.

public void SetSamplerState(int slot, SamplerState samplerState)

Parameters

slot int

The slot.

samplerState SamplerState

The sampler state.

SetShaderResourceView(int, GraphicsResource)

Sets a shader resource view descriptor.

public void SetShaderResourceView(int slot, GraphicsResource shaderResourceView)

Parameters

slot int

The slot.

shaderResourceView GraphicsResource

The shader resource view.

SetUnorderedAccessView(int, GraphicsResource)

Sets an unordered access view descriptor.

public void SetUnorderedAccessView(int slot, GraphicsResource unorderedAccessView)

Parameters

slot int

The slot.

unorderedAccessView GraphicsResource

The unordered access view.

SetValue(int, object)

Sets a descriptor.

public void SetValue(int slot, object value)

Parameters

slot int

The slot.

value object

The descriptor.