Struct HeapAllocator | Hybrid Renderer | 0.4.2-preview.16
docs.unity3d.com
    Show / Hide Table of Contents

    Struct HeapAllocator

    Namespace: Unity.Rendering
    Syntax
    public struct HeapAllocator : IDisposable

    Constructors

    HeapAllocator(UInt64, UInt32)

    Declaration
    public HeapAllocator(ulong size = 0UL, uint minimumAlignment = 1U)
    Parameters
    Type Name Description
    UInt64 size
    UInt32 minimumAlignment

    Fields

    AlignmentBits

    Declaration
    public const int AlignmentBits = 6
    Field Value
    Type Description
    Int32

    MaxAlignmentLog2

    Declaration
    public const int MaxAlignmentLog2 = 63
    Field Value
    Type Description
    Int32

    Properties

    Empty

    Declaration
    public bool Empty { get; }
    Property Value
    Type Description
    Boolean

    FreeSpace

    Declaration
    public ulong FreeSpace { get; }
    Property Value
    Type Description
    UInt64

    Full

    Declaration
    public bool Full { get; }
    Property Value
    Type Description
    Boolean

    IsCreated

    Declaration
    public bool IsCreated { get; }
    Property Value
    Type Description
    Boolean

    MinimumAlignment

    Declaration
    public uint MinimumAlignment { get; }
    Property Value
    Type Description
    UInt32

    Size

    Declaration
    public ulong Size { get; }
    Property Value
    Type Description
    UInt64

    UsedSpace

    Declaration
    public ulong UsedSpace { get; }
    Property Value
    Type Description
    UInt64

    Methods

    Allocate(UInt64, UInt32)

    Declaration
    public HeapBlock Allocate(ulong size, uint alignment = 1U)
    Parameters
    Type Name Description
    UInt64 size
    UInt32 alignment
    Returns
    Type Description
    HeapBlock

    Clear()

    Declaration
    public void Clear()

    Dispose()

    Declaration
    public void Dispose()

    Release(HeapBlock)

    Declaration
    public void Release(HeapBlock block)
    Parameters
    Type Name Description
    HeapBlock block

    Resize(UInt64)

    Declaration
    public bool Resize(ulong newSize)
    Parameters
    Type Name Description
    UInt64 newSize
    Returns
    Type Description
    Boolean
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023