Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    BufferPool Class

    Namespace: Stride.Graphics
    Assembly: Stride.Graphics.dll
    System.Object → BufferPool
    Derived from BufferPool:

    public class BufferPool : IDisposable
    Name Description
    Fields
    Data
    Size
    Methods
    Allocate(GraphicsDevice, Int32, BufferPoolAllocationType, ref BufferPoolAllocationResult)
    CanAllocate(Int32)
    Dispose()
    Map(CommandList)
    New(GraphicsResourceAllocator, GraphicsDevice, Int32)
    Reset()
    Unmap()
    | Improve this Doc View Source

    Fields


    Data

    public IntPtr Data
    Field Value
    Type Description
    System.IntPtr

    Size

    public int Size
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Methods


    Allocate(GraphicsDevice, Int32, BufferPoolAllocationType, ref BufferPoolAllocationResult)

    public void Allocate(GraphicsDevice graphicsDevice, int size, BufferPoolAllocationType type, ref BufferPoolAllocationResult bufferPoolAllocationResult)
    Parameters
    Type Name Description
    GraphicsDevice graphicsDevice
    System.Int32 size
    BufferPoolAllocationType type
    BufferPoolAllocationResult bufferPoolAllocationResult

    CanAllocate(Int32)

    public bool CanAllocate(int size)
    Parameters
    Type Name Description
    System.Int32 size
    Returns
    Type Description
    System.Boolean

    Dispose()

    public void Dispose()

    Map(CommandList)

    public void Map(CommandList commandList)
    Parameters
    Type Name Description
    CommandList commandList

    New(GraphicsResourceAllocator, GraphicsDevice, Int32)

    public static BufferPool New(GraphicsResourceAllocator allocator, GraphicsDevice graphicsDevice, int size)
    Parameters
    Type Name Description
    GraphicsResourceAllocator allocator
    GraphicsDevice graphicsDevice
    System.Int32 size
    Returns
    Type Description
    BufferPool

    Reset()

    public void Reset()

    Unmap()

    public void Unmap()

    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