Package icyllis.arc3d.engine
Class Image.ResourceKey
java.lang.Object
icyllis.arc3d.engine.Image.ResourceKey
- All Implemented Interfaces:
IResourceKey
- Enclosing class:
Image
Storage key of
Image
, may be compared with ImageViewProxy
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncompute
(BackendFormat format, int width, int height, int sampleCount, int surfaceFlags) Update this key with the given arguments, format can not be compressed.copy()
boolean
KeepObject.equals(Object)
} sync with this.int
hashCode()
KeepObject.hashCode()
sync with this.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface icyllis.arc3d.engine.IResourceKey
isShareable
-
Field Details
-
mWidth
public int mWidth -
mHeight
public int mHeight -
mFormat
public int mFormat -
mFlags
public int mFlags
-
-
Constructor Details
-
ResourceKey
public ResourceKey()
-
-
Method Details
-
compute
@Nonnull public Image.ResourceKey compute(BackendFormat format, int width, int height, int sampleCount, int surfaceFlags) Update this key with the given arguments, format can not be compressed.- Returns:
- this
-
copy
- Specified by:
copy
in interfaceIResourceKey
-
hashCode
public int hashCode()KeepObject.hashCode()
sync with this.- Specified by:
hashCode
in interfaceIResourceKey
- Overrides:
hashCode
in classObject
-
equals
KeepObject.equals(Object)
} sync with this.- Specified by:
equals
in interfaceIResourceKey
- Overrides:
equals
in classObject
-