Class GPUResource
The base class for all GPU resources.
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public abstract class GPUResource : Object
Constructors
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()