Search Results for

    Show / Hide Table of Contents

    Class DX11Buffer

    Represents a DirectX buffer object.

    Inheritance
    object
    GraphicsResource
    Buffer
    DX11Buffer
    Inherited Members
    Buffer.Description
    Buffer.UpdateCounter
    GraphicsResource.disposed
    GraphicsResource.Context
    GraphicsResource.Disposed
    Namespace: Evergine.DirectX11
    Assembly: Evergine.DirectX11.dll
    Syntax
    public class DX11Buffer : Buffer

    Constructors

    DX11Buffer(DX11GraphicsContext, nint, ref BufferDescription)

    Initializes a new instance of the DX11Buffer class.

    Declaration
    public DX11Buffer(DX11GraphicsContext context, nint data, ref BufferDescription description)
    Parameters
    Type Name Description
    DX11GraphicsContext context

    The graphics context.

    nint data

    The data pointer.

    BufferDescription description

    The buffer description.

    Fields

    NativeBuffer

    The instance of the DirectX buffer.

    Declaration
    public ID3D11Buffer NativeBuffer
    Field Value
    Type Description
    ID3D11Buffer

    Properties

    Name

    Gets or sets a string identifying this instance. It can be used in graphics debugging tools.

    Declaration
    public override string Name { get; set; }
    Property Value
    Type Description
    string
    Overrides
    Buffer.Name

    NativePointer

    Gets the native pointer.

    Declaration
    public override nint NativePointer { get; }
    Property Value
    Type Description
    nint
    Overrides
    GraphicsResource.NativePointer

    ShaderResourceView

    Gets the shader resource view.

    Declaration
    public ID3D11ShaderResourceView ShaderResourceView { get; }
    Property Value
    Type Description
    ID3D11ShaderResourceView

    UnorderedAccessView

    Gets the unordered access view.

    Declaration
    public ID3D11UnorderedAccessView UnorderedAccessView { get; }
    Property Value
    Type Description
    ID3D11UnorderedAccessView

    Methods

    CopyTo(ID3D11DeviceContext, Buffer, uint, uint, uint)

    Copies this buffer to the destination buffer.

    Declaration
    public void CopyTo(ID3D11DeviceContext deviceContext, Buffer destination, uint sizeInBytes, uint sourceOffset = 0, uint destinationOffset = 0)
    Parameters
    Type Name Description
    ID3D11DeviceContext deviceContext

    Device context.

    Buffer destination

    The destination buffer.

    uint sizeInBytes

    The data size in bytes to copy.

    uint sourceOffset

    The source buffer offset in bytes.

    uint destinationOffset

    The destination buffer offset in bytes.

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public override void Dispose()
    Overrides
    GraphicsResource.Dispose()

    SetData(ID3D11DeviceContext, nint, uint, uint)

    Fills the buffer from a pointer.

    Declaration
    public void SetData(ID3D11DeviceContext deviceContext, nint source, uint sourceSizeInBytes, uint destinationOffsetInBytes = 0)
    Parameters
    Type Name Description
    ID3D11DeviceContext deviceContext

    The device context.

    nint source

    The data pointer.

    uint sourceSizeInBytes

    The size in bytes of the source.

    uint destinationOffsetInBytes

    The offset in bytes for the destination.

    ToStaging()

    Returns a new Buffer with ResourceUsage set to staging.

    Declaration
    public DX11Buffer ToStaging()
    Returns
    Type Description
    DX11Buffer

    A new staging Buffer.

    Extension Methods

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