Package icyllis.arc3d.granite
Class GraniteImage
java.lang.Object
icyllis.arc3d.core.RefCnt
icyllis.arc3d.sketch.Image
icyllis.arc3d.granite.GraniteImage
- All Implemented Interfaces:
RefCounted
The image that is backed by GPU.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionGraniteImage(@NonNull @RawPtr RecordingContext context, @NonNull @SharedPtr ImageViewProxy view, int colorType, int alphaType, @Nullable ColorSpace colorSpace) -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable @SharedPtr GraniteImagecopy(@RawPtr RecordingContext rc, @RawPtr ImageViewProxy srcView, @NonNull ImageInfo srcInfo, @NonNull Rect2ic subset, boolean budgeted, boolean mipmapped, boolean approxFit, @Nullable String label) protected voidOverride this method to invoke de-allocation of the underlying resource.longbooleantoString()Methods inherited from class icyllis.arc3d.sketch.Image
getAlphaType, getBounds, getBounds, getColorSpace, getColorType, getHeight, getInfo, getUniqueID, getWidth, isAlphaOnly, isOpaque, isRasterBacked
-
Constructor Details
-
GraniteImage
public GraniteImage(@RawPtr @NonNull @RawPtr RecordingContext context, @SharedPtr @NonNull @SharedPtr ImageViewProxy view, int colorType, int alphaType, @Nullable ColorSpace colorSpace)
-
-
Method Details
-
copy
@SharedPtr public static @Nullable @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
-