Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    BufferDescription Struct

    Namespace: Stride.Graphics
    Assembly: Stride.Graphics.dll

    Describes a buffer.

    public struct BufferDescription : IEquatable<BufferDescription>
    Name Description
    Constructors
    BufferDescription(Int32, BufferFlags, GraphicsResourceUsage, Int32)

    Initializes a new instance of BufferDescription struct.

    Fields
    BufferFlags

    Buffer flags describing the type of buffer.

    SizeInBytes

    Size of the buffer in bytes.

    StructureByteStride

    The size of the structure (in bytes) when it represents a structured/typed buffer.

    Usage

    Usage of this buffer.

    Methods
    Equals(BufferDescription)
    Equals(Object)
    GetHashCode()
    Operators
    Equality(BufferDescription, BufferDescription)

    Implements the operator ==.

    Inequality(BufferDescription, BufferDescription)

    Implements the operator !=.

    | Improve this Doc View Source

    Constructors


    BufferDescription(Int32, BufferFlags, GraphicsResourceUsage, Int32)

    Initializes a new instance of BufferDescription struct.

    public BufferDescription(int sizeInBytes, BufferFlags bufferFlags, GraphicsResourceUsage usage, int structureByteStride = 0)
    Parameters
    Type Name Description
    System.Int32 sizeInBytes

    Size of the buffer in bytes.

    BufferFlags bufferFlags

    Buffer flags describing the type of buffer.

    GraphicsResourceUsage usage

    Usage of this buffer.

    System.Int32 structureByteStride

    The size of the structure (in bytes) when it represents a structured/typed buffer. Default = 0.

    | Improve this Doc View Source

    Fields


    BufferFlags

    Buffer flags describing the type of buffer.

    public BufferFlags BufferFlags
    Field Value
    Type Description
    BufferFlags

    SizeInBytes

    Size of the buffer in bytes.

    public int SizeInBytes
    Field Value
    Type Description
    System.Int32

    StructureByteStride

    The size of the structure (in bytes) when it represents a structured/typed buffer.

    public int StructureByteStride
    Field Value
    Type Description
    System.Int32

    Usage

    Usage of this buffer.

    public GraphicsResourceUsage Usage
    Field Value
    Type Description
    GraphicsResourceUsage
    | Improve this Doc View Source

    Methods


    Equals(BufferDescription)

    public bool Equals(BufferDescription other)
    Parameters
    Type Name Description
    BufferDescription other
    Returns
    Type Description
    System.Boolean

    Equals(Object)

    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.ValueType.Equals(System.Object)

    GetHashCode()

    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.ValueType.GetHashCode()
    | Improve this Doc View Source

    Operators


    Equality(BufferDescription, BufferDescription)

    Implements the operator ==.

    public static bool operator ==(BufferDescription left, BufferDescription right)
    Parameters
    Type Name Description
    BufferDescription left

    The left.

    BufferDescription right

    The right.

    Returns
    Type Description
    System.Boolean

    The result of the operator.


    Inequality(BufferDescription, BufferDescription)

    Implements the operator !=.

    public static bool operator !=(BufferDescription left, BufferDescription right)
    Parameters
    Type Name Description
    BufferDescription left

    The left.

    BufferDescription right

    The right.

    Returns
    Type Description
    System.Boolean

    The result of the operator.


    Inherited Members

    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