Package icyllis.arc3d.vulkan
Class VulkanRenderTarget
java.lang.Object
icyllis.arc3d.engine.Resource
icyllis.arc3d.engine.GpuSurface
icyllis.arc3d.engine.GpuRenderTarget
icyllis.arc3d.vulkan.VulkanRenderTarget
- All Implemented Interfaces:
RefCounted
-
Nested Class Summary
Nested classes/interfaces inherited from class icyllis.arc3d.engine.GpuRenderTarget
GpuRenderTarget.ResourceKey -
Field Summary
Fields inherited from class icyllis.arc3d.engine.GpuRenderTarget
mSurfaceFlags -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedVulkanRenderTarget(Context context, int width, int height, int sampleCount, int numColorAttachments) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean@NonNull BackendFormatDescribes the backend format of color buffers.@NonNull BackendRenderTargetDescribes the backend render target of this render target.@Nullable Image@Nullable ImagegetColorAttachment(int index) protected Image @Nullable []intGet the number of implicit depth bits, or 0 if no depth.@Nullable ImageGet the dynamic or implicit stencil buffer, or null if no stencil.@Nullable Image@Nullable ImagegetResolveAttachment(int index) protected Image @Nullable []intGet the number of implicit stencil bits, or 0 if no stencil.booleanprotected voidSubclass should override this method to free GPU resources in the backend API.Methods inherited from class icyllis.arc3d.engine.GpuRenderTarget
asImage, asRenderTarget, getHeight, getSampleCount, getSurfaceFlags, getWidth, numColorTargetsMethods inherited from class icyllis.arc3d.engine.Resource
getContext, getDevice, getKey, getLabel, getMemorySize, getUniqueID, hasAnyRefs, hasCacheRef, hasCommandBufferRef, hasUsageRef, isBudgeted, isDestroyed, isPurgeable, isShareable, isWrapped, onSetLabel, ref, refCommandBuffer, setLabel, setNonCacheable, unref, unrefCommandBuffer
-
Constructor Details
-
VulkanRenderTarget
protected VulkanRenderTarget(Context context, int width, int height, int sampleCount, int numColorAttachments)
-
-
Method Details
-
getBackendFormat
Description copied from class:GpuRenderTargetDescribes the backend format of color buffers.- Specified by:
getBackendFormatin classGpuRenderTarget
-
isProtected
public boolean isProtected()- Specified by:
isProtectedin classGpuSurface- Returns:
- true if we are working with protected content
-
getBackendRenderTarget
Description copied from class:GpuRenderTargetDescribes the backend render target of this render target.- Specified by:
getBackendRenderTargetin classGpuRenderTarget
-
getColorAttachment
- Specified by:
getColorAttachmentin classGpuRenderTarget
-
getColorAttachment
- Specified by:
getColorAttachmentin classGpuRenderTarget
-
getColorAttachments
- Specified by:
getColorAttachmentsin classGpuRenderTarget
-
getResolveAttachment
- Specified by:
getResolveAttachmentin classGpuRenderTarget
-
getResolveAttachment
- Specified by:
getResolveAttachmentin classGpuRenderTarget
-
getResolveAttachments
- Specified by:
getResolveAttachmentsin classGpuRenderTarget
-
getDepthStencilAttachment
Description copied from class:GpuRenderTargetGet the dynamic or implicit stencil buffer, or null if no stencil.- Specified by:
getDepthStencilAttachmentin classGpuRenderTarget
-
getDepthBits
public int getDepthBits()Description copied from class:GpuRenderTargetGet the number of implicit depth bits, or 0 if no depth.- Specified by:
getDepthBitsin classGpuRenderTarget
-
getStencilBits
public int getStencilBits()Description copied from class:GpuRenderTargetGet the number of implicit stencil bits, or 0 if no stencil.- Specified by:
getStencilBitsin classGpuRenderTarget
-
canAttachStencil
protected boolean canAttachStencil()- Specified by:
canAttachStencilin classGpuRenderTarget- Returns:
- whether a stencil buffer can be attached to this render target.
-
onRelease
protected void onRelease()Description copied from class:ResourceSubclass should override this method to free GPU resources in the backend API.
-