Class FramebufferDesc

java.lang.Object
icyllis.arc3d.engine.FramebufferDesc

@Immutable public final class FramebufferDesc extends Object
Descriptor to create a framebuffer.
  • Field Details Link icon

    • FLAG_GL_WRAP_DEFAULT_FB Link icon

      @Internal public static final int FLAG_GL_WRAP_DEFAULT_FB
      This is a OpenGL only flag. It tells us that the internal render target wraps the OpenGL default framebuffer (id=0) that preserved by window. RT only.
      See Also:
    • FLAG_MANUAL_MSAA_RESOLVE Link icon

      @Internal public static final int FLAG_MANUAL_MSAA_RESOLVE
      This means the render target is multi-sampled, and internally holds a non-msaa image for resolving into. The render target resolves itself by blit-ting into this internal image. (It might or might not have the internal image access, but if it does, we always resolve the render target before accessing this image's data.) RT only.
      See Also:
    • FLAG_VK_WRAP_SECONDARY_CB Link icon

      @Internal public static final int FLAG_VK_WRAP_SECONDARY_CB
      This is a Vulkan only flag. It tells us that the internal render target is wrapping a raw Vulkan secondary command buffer. RT only.
      See Also:
    • mColorAttachments Link icon

      @Nonnull public final FramebufferDesc.ColorAttachmentDesc[] mColorAttachments
    • NO_COLOR_ATTACHMENTS Link icon

      public static final FramebufferDesc.ColorAttachmentDesc[] NO_COLOR_ATTACHMENTS
    • mDepthStencilAttachment Link icon

      @Nonnull public final FramebufferDesc.DepthStencilAttachmentDesc mDepthStencilAttachment
    • NO_DEPTH_STENCIL_ATTACHMENT Link icon

      public static final FramebufferDesc.DepthStencilAttachmentDesc NO_DEPTH_STENCIL_ATTACHMENT
    • mWidth Link icon

      public final int mWidth
      If there are any attachments, then framebuffer bounds must be the intersection of all attachment bounds.
    • mHeight Link icon

      public final int mHeight
      If there are any attachments, then framebuffer bounds must be the intersection of all attachment bounds.
    • mSampleCount Link icon

      public final int mSampleCount
    • mFramebufferFlags Link icon

      public int mFramebufferFlags
  • Constructor Details Link icon

  • Method Details Link icon

    • isStale Link icon

      public boolean isStale()
      Should the framebuffer keyed by this be deleted now? Used to delete framebuffers if one of the attachments has already been deleted.
      Returns:
      true to delete, false to keep
    • hashCode Link icon

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals Link icon

      public boolean equals(Object o)
      Overrides:
      equals in class Object