Package icyllis.arc3d.granite
Class GraniteImage
java.lang.Object
icyllis.arc3d.core.RefCnt
icyllis.arc3d.core.Image
icyllis.arc3d.granite.GraniteImage
- All Implemented Interfaces:
RefCounted
The image that is backed by GPU.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionGraniteImage
(@RawPtr RecordingContext context, @SharedPtr ImageViewProxy view, int colorType, int alphaType, ColorSpace colorSpace) -
Method Summary
Modifier and TypeMethodDescriptionstatic @SharedPtr GraniteImage
copy
(@RawPtr RecordingContext rc, @RawPtr ImageViewProxy srcView, ImageInfo srcInfo, Rect2ic subset, boolean budgeted, boolean mipmapped, boolean approxFit, String label) protected void
Override this method to invoke de-allocation of the underlying resource.long
boolean
toString()
Methods inherited from class icyllis.arc3d.core.Image
getAlphaType, getBounds, getBounds, getColorSpace, getColorType, getHeight, getInfo, getUniqueID, getWidth, isAlphaOnly, isRasterBacked
-
Constructor Details
-
GraniteImage
public GraniteImage(@Nonnull @RawPtr @RawPtr RecordingContext context, @Nonnull @SharedPtr @SharedPtr ImageViewProxy view, int colorType, int alphaType, @Nullable ColorSpace colorSpace)
-
-
Method Details
-
copy
@Nullable @SharedPtr public static @SharedPtr GraniteImage copy(@RawPtr @RawPtr RecordingContext rc, @RawPtr @RawPtr ImageViewProxy srcView, @Nonnull ImageInfo srcInfo, @Nonnull Rect2ic subset, boolean budgeted, boolean mipmapped, boolean approxFit, @Nullable String label) -
deallocate
protected void deallocate()Description copied from class:RefCnt
Override this method to invoke de-allocation of the underlying resource.- Specified by:
deallocate
in classRefCnt
-
getContext
- Overrides:
getContext
in classImage
-
getImageViewProxy
-
isTextureBacked
public boolean isTextureBacked()- Overrides:
isTextureBacked
in classImage
-
getTextureSize
public long getTextureSize()- Overrides:
getTextureSize
in classImage
-
toString
-