Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    DescriptorSet Struct

    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
    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.

    | Improve this Doc View Source

    Properties


    IsValid

    public readonly bool IsValid { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    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()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation