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
graphicsDeviceGraphicsDevicepoolDescriptorPooldescDescriptorSetLayout
Returns
SetConstantBuffer(int, Buffer, int, int)
Sets a constant buffer view descriptor.
public void SetConstantBuffer(int slot, Buffer buffer, int offset, int size)
Parameters
slotintThe slot.
bufferBufferThe constant buffer.
offsetintThe constant buffer view start offset.
sizeintThe constant buffer view size.
SetSamplerState(int, SamplerState)
Sets a sampler state descriptor.
public void SetSamplerState(int slot, SamplerState samplerState)
Parameters
slotintThe slot.
samplerStateSamplerStateThe sampler state.
SetShaderResourceView(int, GraphicsResource)
Sets a shader resource view descriptor.
public void SetShaderResourceView(int slot, GraphicsResource shaderResourceView)
Parameters
slotintThe slot.
shaderResourceViewGraphicsResourceThe shader resource view.
SetUnorderedAccessView(int, GraphicsResource)
Sets an unordered access view descriptor.
public void SetUnorderedAccessView(int slot, GraphicsResource unorderedAccessView)
Parameters
slotintThe slot.
unorderedAccessViewGraphicsResourceThe unordered access view.
SetValue(int, object)
Sets a descriptor.
public void SetValue(int slot, object value)
Parameters
slotintThe slot.
valueobjectThe descriptor.