Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    BatchBase<TDrawInfo>.DeviceResourceContext Class

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

    Use a ResourceContext per GraphicsDevice (DeviceContext)

    System.Object → DisposeBase → ComponentBase → BatchBase<TDrawInfo>.DeviceResourceContext
    Derived from BatchBase<TDrawInfo>.DeviceResourceContext:

    protected class DeviceResourceContext : ComponentBase, IDisposable, IComponent, IReferencable, ICollectorHolder
    Name Description
    Constructors
    DeviceResourceContext(GraphicsDevice, VertexDeclaration, BatchBase<TDrawInfo>.ResourceBufferInfo)
    Fields
    IndexBuffer

    The index buffer of the batch.

    IndexBufferPosition

    The current position in index into the index array buffer.

    IndexCount

    Gets the number of indices.

    InputElements
    IsIndexBufferDynamic

    Gets a boolean indicating if the index buffer is dynamic.

    IsInImmediateMode

    Indicate if the batch system is drawing in immediate mode for this buffer.

    VertexBuffer

    The vertex buffer of the batch.

    VertexBufferPosition

    The current position in vertex into the vertex array buffer.

    VertexCount

    Gets the number of vertices.

    VertexDeclaration
    | Improve this Doc View Source

    Constructors


    DeviceResourceContext(GraphicsDevice, VertexDeclaration, BatchBase<TDrawInfo>.ResourceBufferInfo)

    public DeviceResourceContext(GraphicsDevice device, VertexDeclaration declaration, BatchBase<TDrawInfo>.ResourceBufferInfo resourceBufferInfo)
    Parameters
    Type Name Description
    GraphicsDevice device
    VertexDeclaration declaration
    BatchBase.ResourceBufferInfo<> resourceBufferInfo
    | Improve this Doc View Source

    Fields


    IndexBuffer

    The index buffer of the batch.

    public Buffer IndexBuffer
    Field Value
    Type Description
    Buffer

    IndexBufferPosition

    The current position in index into the index array buffer.

    public int IndexBufferPosition
    Field Value
    Type Description
    System.Int32

    IndexCount

    Gets the number of indices.

    public readonly int IndexCount
    Field Value
    Type Description
    System.Int32

    InputElements

    public readonly InputElementDescription[] InputElements
    Field Value
    Type Description
    InputElementDescription[]

    IsIndexBufferDynamic

    Gets a boolean indicating if the index buffer is dynamic.

    public readonly bool IsIndexBufferDynamic
    Field Value
    Type Description
    System.Boolean

    IsInImmediateMode

    Indicate if the batch system is drawing in immediate mode for this buffer.

    public bool IsInImmediateMode
    Field Value
    Type Description
    System.Boolean

    VertexBuffer

    The vertex buffer of the batch.

    public Buffer VertexBuffer
    Field Value
    Type Description
    Buffer

    VertexBufferPosition

    The current position in vertex into the vertex array buffer.

    public int VertexBufferPosition
    Field Value
    Type Description
    System.Int32

    VertexCount

    Gets the number of vertices.

    public readonly int VertexCount
    Field Value
    Type Description
    System.Int32

    VertexDeclaration

    public readonly VertexDeclaration VertexDeclaration
    Field Value
    Type Description
    VertexDeclaration

    Inherited Members

    ComponentBase.Tags
    ComponentBase.Name
    ComponentBase.Destroy()
    ComponentBase.ICollectorHolder.Collector
    ComponentBase.OnNameChanged()
    ComponentBase.ToString()
    DisposeBase.Dispose()
    DisposeBase.IsDisposed
    DisposeBase.IReferencable.ReferenceCount
    DisposeBase.IReferencable.AddReference()
    DisposeBase.IReferencable.Release()
    DisposeBase.OnAddReference()
    DisposeBase.OnReleaseReference()

    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