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
ConstructorsConstructorDescriptionGraniteImage(@RawPtr RecordingContext context, @SharedPtr ImageViewProxy view, int colorType, int alphaType, ColorSpace colorSpace) -
Method Summary
Modifier and TypeMethodDescriptionstatic @SharedPtr GraniteImagecopy(@RawPtr RecordingContext rc, @RawPtr ImageViewProxy srcView, ImageInfo srcInfo, Rect2ic subset, boolean budgeted, boolean mipmapped, boolean approxFit, String label) protected voidOverride this method to invoke de-allocation of the underlying resource.longbooleantoString()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:RefCntOverride this method to invoke de-allocation of the underlying resource.- Specified by:
deallocatein classRefCnt
-
getContext
- Overrides:
getContextin classImage
-
getImageViewProxy
-
isTextureBacked
public boolean isTextureBacked()- Overrides:
isTextureBackedin classImage
-
getTextureSize
public long getTextureSize()- Overrides:
getTextureSizein classImage
-
toString
-