Package icyllis.arc3d.opengl
Class GLRenderbuffer
java.lang.Object
icyllis.arc3d.engine.Resource
icyllis.arc3d.engine.Image
icyllis.arc3d.opengl.GLImage
icyllis.arc3d.opengl.GLRenderbuffer
- All Implemented Interfaces:
RefCounted
Represents OpenGL renderbuffers.
Renderbuffer can be only used as attachments of framebuffers as an optimization. Renderbuffer can neither be accessed by shaders nor have mipmaps, but can be multisampled.
-
Nested Class Summary
Nested classes/interfaces inherited from class icyllis.arc3d.opengl.GLImage
GLImage.ResourceKey -
Field Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull BackendFormatintstatic GLRenderbuffermake(Context context, GLImageDesc desc) static @Nullable @SharedPtr GLRenderbufferstatic @Nullable @SharedPtr GLRenderbuffermakeStencil(GLDevice device, int width, int height, int sampleCount, int format) static @NonNull @SharedPtr GLRenderbuffermakeWrapped(GLDevice device, int width, int height, int sampleCount, int format, int renderbuffer) static @NonNull @SharedPtr GLRenderbuffermakeWrappedRenderbuffer(Context context, int width, int height, int sampleCount, int format, int renderbuffer) protected voidSubclass should override this method to free GPU resources in the backend API.protected voidonSetLabel(@Nullable String label) Subclass should override this method to set object label in the backend API.toString()Methods inherited from class icyllis.arc3d.opengl.GLImage
getDevice, getFormat, getGLDesc, getTargetMethods inherited from class icyllis.arc3d.engine.Image
getArraySize, getDepth, getDepthBits, getDesc, getHeight, getImageType, getMipLevelCount, getMutableState, getSampleCount, getStencilBits, getWidth, isMipmapped, isMipmapsDirty, isProtected, isReadOnly, isRenderable, isSampledImage, isStorageImage, setMipmapsDirty, setReleaseCallbackMethods inherited from class icyllis.arc3d.engine.Resource
getContext, getKey, getLabel, getMemorySize, getUniqueID, hasAnyRefs, hasCacheRef, hasCommandBufferRef, hasUsageRef, isBudgeted, isDestroyed, isPurgeable, isShareable, isWrapped, ref, refCommandBuffer, setLabel, setNonCacheable, unref, unrefCommandBuffer
-
Method Details
-
makeStencil
@SharedPtr public static @Nullable @SharedPtr GLRenderbuffer makeStencil(GLDevice device, int width, int height, int sampleCount, int format) -
makeColor
@SharedPtr public static @Nullable @SharedPtr GLRenderbuffer makeColor(GLDevice device, int width, int height, int sampleCount, int format) -
makeWrapped
@SharedPtr public static @NonNull @SharedPtr GLRenderbuffer makeWrapped(GLDevice device, int width, int height, int sampleCount, int format, int renderbuffer) -
makeWrappedRenderbuffer
@SharedPtr public static @NonNull @SharedPtr GLRenderbuffer makeWrappedRenderbuffer(Context context, int width, int height, int sampleCount, int format, int renderbuffer) -
make
-
getBackendFormat
-
onSetLabel
Description copied from class:ResourceSubclass should override this method to set object label in the backend API.- Overrides:
onSetLabelin classResource
-
onRelease
protected void onRelease()Description copied from class:ResourceSubclass should override this method to free GPU resources in the backend API. -
getHandle
public int getHandle() -
toString
-