API reference
API reference
Select your platform
No SDKs available
No versions available

LayerTexture Struct

Texture information for a single eye/stage in the overlay rendering pipeline.
Manages Unity textures and compositor swap chain textures for multi-buffered rendering. Contains both application textures from textures and compositor-managed swap chain for efficient GPU rendering. Used in layerTextures array with one entry per eye/stage for stereo or mono content.

Fields

Unity application texture provided through textures array.
Contains the original texture source for overlay rendering. This is the source texture that gets copied to the compositor swap chain for VR display. Can be Texture2D, RenderTexture, or Cubemap.
Native pointer to application texture for direct compositor access. Cached pointer for efficient texture submission to VR runtime.
Compositor-managed textures forming the swap chain for multi-buffered rendering. Array of textures provided by VR compositor for direct rendering.
Native pointers to each swap chain texture for efficient GPU memory access. Cached native handles for direct GPU texture operations.
Did you find this page helpful?