public interface GpuResourceHandle
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
Engine |
getEngine() |
Obtains the engine to which this handle belongs.
|
boolean |
isValid() |
Checks whether this resource handle is valid.
|
static boolean |
isValid(GpuResourceHandle handle) |
Checks whether a specified resource handle is valid.
|
void |
release() |
Releases the resource referenced by this handle.
|
Engine getEngine()
void release()
This handle cannot be used after this method is called.
boolean isValid()
true if this handle is valid; returns false otherwise.static boolean isValid(GpuResourceHandle handle)
handle - Indicates the GpuResourceHandle object to check.true if the given handle is valid; returns false otherwise.