Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IWebXRRenderTargetTextureProvider

An interface for objects that provide render target textures for XR rendering.

Hierarchy

Implemented by

Index

Methods

disposeSearch playground for dispose

  • dispose(): void
  • Releases all held resources

    Returns void

getRenderTargetTextureForEyeSearch playground for getRenderTargetTextureForEye

  • Gets the correct render target texture to be rendered this frame for this eye

    Parameters

    • eye: XREye

      the eye for which to get the render target

    Returns Nullable<RenderTargetTexture>

    the render target for the specified eye or null if not available

getRenderTargetTextureForViewSearch playground for getRenderTargetTextureForView

  • Gets the correct render target texture to be rendered this frame for this view

    Parameters

    • view: XRView

      the view for which to get the render target

    Returns Nullable<RenderTargetTexture>

    the render target for the specified view or null if not available

trySetViewportForViewSearch playground for trySetViewportForView

  • Attempts to set the framebuffer-size-normalized viewport to be rendered this frame for this view. In the event of a failure, the supplied viewport is not updated.

    Parameters

    • viewport: Viewport

      the viewport to which the view will be rendered

    • view: XRView

      the view for which to set the viewport

    Returns boolean

    whether the operation was successful

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method