Search Results for

    Show / Hide Table of Contents

    Class GPUResource

    The base class for all GPU resources.

    Inheritance
    System.Object
    Object
    GPUResource
    GPUBuffer
    GPUPipelineState
    GPUSampler
    GPUShader
    GPUTexture
    GPUVertexLayout
    Inherited Members
    Object.__unmanagedPtr
    Object.__internalId
    Object.Finalize()
    Object.As<T>()
    Object.NewValue(Type)
    Object.New(String)
    Object.Find<T>(Guid, Boolean)
    Object.Find(Guid, Type, Boolean)
    Object.TryFind<T>(Guid)
    Object.TryFind(Guid, Type)
    Object.Destroy(Object, Single)
    Object.DestroyNow(Object)
    Object.Destroy<T>(T, Single)
    Object.Equals(Object)
    Object.GetUnmanagedPtr(Object)
    Object.GetUnmanagedInterface(Object, Type)
    Object.FromUnmanagedPtr(IntPtr)
    Object.MapObjectID(Guid)
    Object.RemapObjectID(Guid)
    Object.GetHashCode()
    Object.ID
    Object.TypeName
    Namespace: FlaxEngine
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    [Unmanaged]
    public abstract class GPUResource : Object

    Constructors

    GPUResource()

    Initializes a new instance of the GPUResource.

    Declaration
    protected GPUResource()

    Properties

    MemoryUsage

    Gets amount of GPU memory used by this resource (in bytes). It's a rough estimation. GPU memory may be fragmented, compressed or sub-allocated so the actual memory pressure from this resource may vary (also depends on the current graphics backend).

    Declaration
    [Unmanaged]
    public ulong MemoryUsage { get; }
    Property Value
    System.UInt64

    Name

    Gets or sets the resource name.

    Declaration
    [Unmanaged]
    public string Name { get; set; }
    Property Value
    System.String

    ResourceType

    Gets the GPU resource type.

    Declaration
    [Unmanaged]
    public GPUResourceType ResourceType { get; }
    Property Value
    GPUResourceType

    Methods

    ReleaseGPU()

    Releases GPU resource data.

    Declaration
    [Unmanaged]
    public void ReleaseGPU()

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.RawClone<T>(T)
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat