UAndroidXRDepthTextureBlueprintFunctionLibrary

#include <AndroidXRDepthTextureBlueprintFunctionLibrary.h>

Summary

Inheritance

Inherits from: UBlueprintFunctionLibrary

Public attributes

Swapchain

Public static functions

AcquireDepthSwapchainImages(const FAndroidXRDepthSwapchain & Swapchain, FAndroidXRDepthAcquireResult & AcquireResult)
bool
Acquires a swapchain image.
CreateDepthSwapchain(EAndroidXRDepthCameraResolution Resolution) int32 CreateFlags
bool
Creates a depth swapchain.
CreateDepthSwapchainTexture(EAndroidXRDepthCameraResolution Resolution, EAndroidXRDepthSwapchainCreateFlag ImageSource)
UTexture2D *
Creates a texture to contain a swapchain image.
DestroyDepthSwapchain(FAndroidXRDepthSwapchain & Swapchain)
bool
Destroys a depth swapchain.
EnumerateDepthResolutions(TArray< EAndroidXRDepthCameraResolution > & SupportedResolutions)
bool
Enumerates the supported depth swapchain resolutions.
EnumerateDepthSwapchainImages(const FAndroidXRDepthSwapchain & Swapchain, TArray< FAndroidXRDepthSwapchainImage > & SwapchainImages)
bool
Enumerates the images contained by the swapchain.
GetDepthSwapchainSupported()
bool
Determines whether or not depth swapchain is supported.
IsValidDepthSwapchain(const FAndroidXRDepthSwapchain & Swapchain)
bool
Determines whether or not an FAndroidXRDepthSwapchain is valid.
UpdateTextureFromDepthSwapchainImage(const FAndroidXRDepthSwapchainImage & SwapchainImage, EAndroidXRDepthSwapchainCreateFlag ImageSource, UTexture2D *Texture)
bool
Updates a texture from a swapchain image.

Public attributes

Swapchain

bool FAndroidXRDepthSwapchain & Swapchain

Public static functions

AcquireDepthSwapchainImages

bool AcquireDepthSwapchainImages(
  const FAndroidXRDepthSwapchain & Swapchain,
  FAndroidXRDepthAcquireResult & AcquireResult
)

Acquires a swapchain image.

Should be called exactly once (per swapchain) between xrBeginFrame and xrEndFrame.

Details
Parameters
Swapchain
The swapchain to be considered.
AcquireResult
The result of the acquisition.
Returns
True if the underlying API call was successful.

CreateDepthSwapchain

bool CreateDepthSwapchain(
  EAndroidXRDepthCameraResolution Resolution
) int32 CreateFlags

Creates a depth swapchain.

Details
Parameters
Resolution
The desired resolution.
CreateFlags
The desired flags.
Swapchain
The created depth swapchain.
Returns
True if the underlying API call was successful.

CreateDepthSwapchainTexture

UTexture2D * CreateDepthSwapchainTexture(
  EAndroidXRDepthCameraResolution Resolution,
  EAndroidXRDepthSwapchainCreateFlag ImageSource
)

Creates a texture to contain a swapchain image.

The texture will be Resolution x Resolution*2, with the two views arranged in order in memory (they will appear vertically if rendered).

Details
Parameters
Resolution
The swapchain resolution.
ImageSource
Flag defining desired image type (depth or confidence).
Returns
A valid UTexture2D if successful.

DestroyDepthSwapchain

bool DestroyDepthSwapchain(
  FAndroidXRDepthSwapchain & Swapchain
)

Destroys a depth swapchain.

Details
Parameters
Swapchain
The swapchain to be destroyed.
Returns
True if the underlying API call was successful.

EnumerateDepthResolutions

bool EnumerateDepthResolutions(
  TArray< EAndroidXRDepthCameraResolution > & SupportedResolutions
)

Enumerates the supported depth swapchain resolutions.

Details
Parameters
SupportedResolutions
The supported depth swapchain resolutions.
Returns
True if the underlying API call was successful.

EnumerateDepthSwapchainImages

bool EnumerateDepthSwapchainImages(
  const FAndroidXRDepthSwapchain & Swapchain,
  TArray< FAndroidXRDepthSwapchainImage > & SwapchainImages
)

Enumerates the images contained by the swapchain.

Details
Parameters
Swapchain
The swapchain to be considered.
SwapchainImages
Array of images in the swapchain.
Returns
True if the underlying API call was successful.

GetDepthSwapchainSupported

bool GetDepthSwapchainSupported()

Determines whether or not depth swapchain is supported.

Details
Returns
True if depth swapchain is supported.

IsValidDepthSwapchain

bool IsValidDepthSwapchain(
  const FAndroidXRDepthSwapchain & Swapchain
)

Determines whether or not an FAndroidXRDepthSwapchain is valid.

Details
Parameters
Swapchain
Swapchain to be verified.
Returns
True if the swapchain is valid.

UpdateTextureFromDepthSwapchainImage

bool UpdateTextureFromDepthSwapchainImage(
  const FAndroidXRDepthSwapchainImage & SwapchainImage,
  EAndroidXRDepthSwapchainCreateFlag ImageSource,
  UTexture2D *Texture
)

Updates a texture from a swapchain image.

Details
Parameters
SwapchainImage
The swapchain image to use as the source.
ImageSource
Flag defining desired image type.
Texture
The texture to be updated.
Returns
True if successful.