Struct DescriptorSet
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
Methods
New(GraphicsDevice, DescriptorPool, DescriptorSetLayout)
public static DescriptorSet New(GraphicsDevice graphicsDevice, DescriptorPool pool, DescriptorSetLayout desc)
Parameters
graphicsDevice
GraphicsDevicepool
DescriptorPooldesc
DescriptorSetLayout
Returns
SetConstantBuffer(int, Buffer, int, int)
Sets a constant buffer view descriptor.
public void SetConstantBuffer(int slot, Buffer buffer, int offset, int size)
Parameters
slot
intThe slot.
buffer
BufferThe constant buffer.
offset
intThe constant buffer view start offset.
size
intThe constant buffer view size.
SetSamplerState(int, SamplerState)
Sets a sampler state descriptor.
public void SetSamplerState(int slot, SamplerState samplerState)
Parameters
slot
intThe slot.
samplerState
SamplerStateThe sampler state.
SetShaderResourceView(int, GraphicsResource)
Sets a shader resource view descriptor.
public void SetShaderResourceView(int slot, GraphicsResource shaderResourceView)
Parameters
slot
intThe slot.
shaderResourceView
GraphicsResourceThe shader resource view.
SetUnorderedAccessView(int, GraphicsResource)
Sets an unordered access view descriptor.
public void SetUnorderedAccessView(int slot, GraphicsResource unorderedAccessView)
Parameters
slot
intThe slot.
unorderedAccessView
GraphicsResourceThe unordered access view.
SetValue(int, object)
Sets a descriptor.
public void SetValue(int slot, object value)