Unity SDK Docs 1.5.0.beta.7
Loading...
Searching...
No Matches
TiltFive.SplitStereoTextures Class Reference

Public Member Functions

void Initialize (Glasses.DisplayInfo displayInfo, RenderTextureFormat renderTextureFormat)
 Creates and configures the stereo rendertextures.
void Initialize (Glasses.DisplayInfo displayInfo, GraphicsFormat graphicsFormat)
 Creates and configures the stereo rendertextures.
void ValidateNativeTexturePointers ()
 Determines whether the left/right texture handles are still valid, and resets them if needed.
void GetNativeTexturePointers (out IntPtr leftTexHandle, out IntPtr rightTexHandle)
 Acquires the native output textures upon startup or invalidaiton.
void SubmitPreviewTextures (GlassesMirrorMode glassesMirrorMode)
 Copies frame data from the HDR input textures to the onscreen preview textures.

Public Attributes

RenderTexture MonoPreviewTex
 The rendertexture used to display onscreen previews for the left or right eye camera.
RenderTexture StereoPreviewTex
 The rendertexture used to display onscreen previews for the left and right eye cameras in stereo.

Properties

RenderTexture LeftTexture_GLS [get]
 The left eye rendertexture.
RenderTexture RightTexture_GLS [get]
 The right eye rendertexture.

Member Function Documentation

◆ GetNativeTexturePointers()

void TiltFive.SplitStereoTextures.GetNativeTexturePointers ( out IntPtr leftTexHandle,
out IntPtr rightTexHandle )

Acquires the native output textures upon startup or invalidaiton.

This should be executed after all rendering is complete, including UI and post processing.

◆ Initialize() [1/2]

void TiltFive.SplitStereoTextures.Initialize ( Glasses.DisplayInfo displayInfo,
GraphicsFormat graphicsFormat )

Creates and configures the stereo rendertextures.

Parameters
displayInfo
graphicsFormatThe format for the rendertextures used for capturing scene content.

◆ Initialize() [2/2]

void TiltFive.SplitStereoTextures.Initialize ( Glasses.DisplayInfo displayInfo,
RenderTextureFormat renderTextureFormat )

Creates and configures the stereo rendertextures.

Parameters
displayInfo
renderTextureFormatThe format for the rendertextures used for capturing scene content.

◆ SubmitPreviewTextures()

void TiltFive.SplitStereoTextures.SubmitPreviewTextures ( GlassesMirrorMode glassesMirrorMode)

Copies frame data from the HDR input textures to the onscreen preview textures.

Parameters
glassesMirrorMode

◆ ValidateNativeTexturePointers()

void TiltFive.SplitStereoTextures.ValidateNativeTexturePointers ( )

Determines whether the left/right texture handles are still valid, and resets them if needed.

This should be executed in OnPreRender(), otherwise IsCreated() always returns true

Member Data Documentation

◆ MonoPreviewTex

RenderTexture TiltFive.SplitStereoTextures.MonoPreviewTex

The rendertexture used to display onscreen previews for the left or right eye camera.

◆ StereoPreviewTex

RenderTexture TiltFive.SplitStereoTextures.StereoPreviewTex

The rendertexture used to display onscreen previews for the left and right eye cameras in stereo.

Property Documentation

◆ LeftTexture_GLS

RenderTexture TiltFive.SplitStereoTextures.LeftTexture_GLS
get

The left eye rendertexture.

This is used to send frame data to the glasses.

◆ RightTexture_GLS

RenderTexture TiltFive.SplitStereoTextures.RightTexture_GLS
get

The right eye rendertexture.

This is used to send frame data to the glasses.