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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull Image.ResourceKeycompute(BackendFormat format, int width, int height, int sampleCount, int surfaceFlags) Update this key with the given arguments, format can not be compressed.copy()booleanKeepObject.equals(Object)} sync with this.inthashCode()KeepObject.hashCode()sync with this.
-
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
public @NonNull 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:
copyin interfaceIResourceKey
-
hashCode
public int hashCode()KeepObject.hashCode()sync with this.- Specified by:
hashCodein interfaceIResourceKey- Overrides:
hashCodein classObject
-
equals
KeepObject.equals(Object)} sync with this.- Specified by:
equalsin interfaceIResourceKey- Overrides:
equalsin classObject
-