Search Results for

    Show / Hide Table of Contents

    Struct BufferDescription

    Contains properties that describe the characteristics of a new buffer object.

    Namespace: Evergine.Common.Graphics
    Assembly: Evergine.Common.dll
    Syntax
    public struct BufferDescription

    Constructors

    BufferDescription(uint, BufferFlags, ResourceUsage, ResourceCpuAccess, int)

    Initializes a new instance of the BufferDescription struct.

    Declaration
    public BufferDescription(uint sizeInBytes, BufferFlags flags, ResourceUsage usage, ResourceCpuAccess cpuAccess = ResourceCpuAccess.None, int structureByteStride = 0)
    Parameters
    Type Name Description
    uint sizeInBytes

    Size of the buffer in bytes.

    BufferFlags flags

    Buffer flags describing the buffer type.

    ResourceUsage usage

    Usage for this buffer.

    ResourceCpuAccess cpuAccess

    Type of CPU access allowed.

    int structureByteStride

    The structure byte stride.

    Fields

    CpuAccess

    Specifies the types of CPU access allowed for this buffer.

    Declaration
    public ResourceCpuAccess CpuAccess
    Field Value
    Type Description
    ResourceCpuAccess

    Flags

    Buffer flags describing the buffer type.

    Declaration
    public BufferFlags Flags
    Field Value
    Type Description
    BufferFlags

    SizeInBytes

    Gets or sets the size of the new buffer.

    Declaration
    public uint SizeInBytes
    Field Value
    Type Description
    uint

    StructureByteStride

    The byte stride of the structure.

    Declaration
    public int StructureByteStride
    Field Value
    Type Description
    int

    Usage

    Use of this buffer.

    Declaration
    public ResourceUsage Usage
    Field Value
    Type Description
    ResourceUsage

    Methods

    Equals(BufferDescription)

    Determines whether the specified parameter is equal to this instance.

    Declaration
    public bool Equals(BufferDescription other)
    Parameters
    Type Name Description
    BufferDescription other

    The object to compare with this instance.

    Returns
    Type Description
    bool

    true if the specified object is equal to this instance; otherwise, false.

    Equals(object)

    Determines whether the specified object is equal to this instance.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with this instance.

    Returns
    Type Description
    bool

    true if the specified object is equal to this instance; otherwise, false.

    Overrides
    ValueType.Equals(object)

    GetHashCode()

    Returns a hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for this instance, suitable for use in hashing algorithms and data structures like hash tables.

    Overrides
    ValueType.GetHashCode()

    Operators

    operator ==(BufferDescription, BufferDescription)

    Implements the operator ==.

    Declaration
    public static bool operator ==(BufferDescription value1, BufferDescription value2)
    Parameters
    Type Name Description
    BufferDescription value1

    The first value.

    BufferDescription value2

    The second value.

    Returns
    Type Description
    bool

    The result of the operator.

    operator !=(BufferDescription, BufferDescription)

    Implements the operator ==.

    Declaration
    public static bool operator !=(BufferDescription value1, BufferDescription value2)
    Parameters
    Type Name Description
    BufferDescription value1

    The first value.

    BufferDescription value2

    The second value.

    Returns
    Type Description
    bool

    The result of the operation.

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX