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
ModifierConstructorDescriptionprotected
VulkanRenderTarget
(Context context, int width, int height, int sampleCount, int numColorAttachments) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Describes the backend format of color buffers.Describes the backend render target of this render target.getColorAttachment
(int index) protected Image[]
int
Get the number of implicit depth bits, or 0 if no depth.Get the dynamic or implicit stencil buffer, or null if no stencil.getResolveAttachment
(int index) protected Image[]
int
Get the number of implicit stencil bits, or 0 if no stencil.boolean
protected void
Subclass 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, numColorTargets
Methods inherited from class icyllis.arc3d.engine.Resource
getContext, getDevice, getKey, getLabel, getMemorySize, getUniqueID, hasAnyRefs, hasCacheRef, hasCommandBufferRef, hasUsageRef, isBudgeted, isDestroyed, isPurgeable, isWrapped, onSetLabel, ref, refCommandBuffer, setKey, 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:GpuRenderTarget
Describes the backend format of color buffers.- Specified by:
getBackendFormat
in classGpuRenderTarget
-
isProtected
public boolean isProtected()- Specified by:
isProtected
in classGpuSurface
- Returns:
- true if we are working with protected content
-
getBackendRenderTarget
Description copied from class:GpuRenderTarget
Describes the backend render target of this render target.- Specified by:
getBackendRenderTarget
in classGpuRenderTarget
-
getColorAttachment
- Specified by:
getColorAttachment
in classGpuRenderTarget
-
getColorAttachment
- Specified by:
getColorAttachment
in classGpuRenderTarget
-
getColorAttachments
- Specified by:
getColorAttachments
in classGpuRenderTarget
-
getResolveAttachment
- Specified by:
getResolveAttachment
in classGpuRenderTarget
-
getResolveAttachment
- Specified by:
getResolveAttachment
in classGpuRenderTarget
-
getResolveAttachments
- Specified by:
getResolveAttachments
in classGpuRenderTarget
-
getDepthStencilAttachment
Description copied from class:GpuRenderTarget
Get the dynamic or implicit stencil buffer, or null if no stencil.- Specified by:
getDepthStencilAttachment
in classGpuRenderTarget
-
getDepthBits
public int getDepthBits()Description copied from class:GpuRenderTarget
Get the number of implicit depth bits, or 0 if no depth.- Specified by:
getDepthBits
in classGpuRenderTarget
-
getStencilBits
public int getStencilBits()Description copied from class:GpuRenderTarget
Get the number of implicit stencil bits, or 0 if no stencil.- Specified by:
getStencilBits
in classGpuRenderTarget
-
canAttachStencil
protected boolean canAttachStencil()- Specified by:
canAttachStencil
in classGpuRenderTarget
- Returns:
- whether a stencil buffer can be attached to this render target.
-
onRelease
protected void onRelease()Description copied from class:Resource
Subclass should override this method to free GPU resources in the backend API.
-