DescriptorSet Struct
Namespace: Stride.GraphicsAssembly: Stride.Graphics.dll
Contains a list descriptors (such as textures) that can be bound together to the graphics pipeline.
public struct DescriptorSet
| Name | Description | |
|---|---|---|
| Properties | ||
| IsValid | ||
| Methods | ||
| New(GraphicsDevice, DescriptorPool, DescriptorSetLayout) | ||
| SetConstantBuffer(Int32, Buffer, Int32, Int32) | Sets a constant buffer view descriptor. |
|
| SetSamplerState(Int32, SamplerState) | Sets a sampler state descriptor. |
|
| SetShaderResourceView(Int32, GraphicsResource) | Sets a shader resource view descriptor. |
|
| SetUnorderedAccessView(Int32, GraphicsResource) | Sets an unordered access view descriptor. |
|
| SetValue(Int32, Object) | Sets a descriptor. |
|
Properties
IsValid
public readonly bool IsValid { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Methods
New(GraphicsDevice, DescriptorPool, DescriptorSetLayout)
public static DescriptorSet New(GraphicsDevice graphicsDevice, DescriptorPool pool, DescriptorSetLayout desc)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphicsDevice | graphicsDevice | |
| DescriptorPool | pool | |
| DescriptorSetLayout | desc |
Returns
| Type | Description |
|---|---|
| DescriptorSet |
SetConstantBuffer(Int32, Buffer, Int32, Int32)
Sets a constant buffer view descriptor.
public void SetConstantBuffer(int slot, Buffer buffer, int offset, int size)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | slot | The slot. |
| Buffer | buffer | The constant buffer. |
| System.Int32 | offset | The constant buffer view start offset. |
| System.Int32 | size | The constant buffer view size. |
SetSamplerState(Int32, SamplerState)
Sets a sampler state descriptor.
public void SetSamplerState(int slot, SamplerState samplerState)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | slot | The slot. |
| SamplerState | samplerState | The sampler state. |
SetShaderResourceView(Int32, GraphicsResource)
Sets a shader resource view descriptor.
public void SetShaderResourceView(int slot, GraphicsResource shaderResourceView)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | slot | The slot. |
| GraphicsResource | shaderResourceView | The shader resource view. |
SetUnorderedAccessView(Int32, GraphicsResource)
Sets an unordered access view descriptor.
public void SetUnorderedAccessView(int slot, GraphicsResource unorderedAccessView)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | slot | The slot. |
| GraphicsResource | unorderedAccessView | The unordered access view. |
SetValue(Int32, Object)
Sets a descriptor.
public void SetValue(int slot, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | slot | The slot. |
| System.Object | value | The descriptor. |
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()