Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    ResourceGroupAllocator Class

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

    Allocator for resource groups.

    System.Object → DisposeBase → ComponentBase → ResourceGroupAllocator
    Derived from ResourceGroupAllocator:

    public class ResourceGroupAllocator : ComponentBase, IDisposable, IComponent, IReferencable, ICollectorHolder
    Name Description
    Constructors
    ResourceGroupAllocator(GraphicsResourceAllocator, CommandList)
    Methods
    AllocateResourceGroup()
    Destroy()
    Flush()
    PrepareResourceGroup(ResourceGroupLayout, BufferPoolAllocationType, ResourceGroup)
    Reset(CommandList)
    | Improve this Doc View Source

    Constructors


    ResourceGroupAllocator(GraphicsResourceAllocator, CommandList)

    public ResourceGroupAllocator(GraphicsResourceAllocator allocator, CommandList commandList)
    Parameters
    Type Name Description
    GraphicsResourceAllocator allocator
    CommandList commandList
    | Improve this Doc View Source

    Methods


    AllocateResourceGroup()

    public ResourceGroup AllocateResourceGroup()
    Returns
    Type Description
    ResourceGroup

    Destroy()

    protected override void Destroy()
    Overrides
    ComponentBase.Destroy()

    Flush()

    public void Flush()

    PrepareResourceGroup(ResourceGroupLayout, BufferPoolAllocationType, ResourceGroup)

    public void PrepareResourceGroup(ResourceGroupLayout resourceGroupLayout, BufferPoolAllocationType constantBufferAllocationType, ResourceGroup resourceGroup)
    Parameters
    Type Name Description
    ResourceGroupLayout resourceGroupLayout
    BufferPoolAllocationType constantBufferAllocationType
    ResourceGroup resourceGroup

    Reset(CommandList)

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

    Inherited Members

    ComponentBase.Tags
    ComponentBase.Name
    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