Expand description
TODO: XR_ANDROID_depth_texture extension implementation (AndroidXR)
This module provides access to the OpenXR XR_ANDROID_depth_texture extension, which allows Android applications to access depth and confidence texture data from the device’s depth sensors.
The extension provides both raw and smooth depth data, along with confidence values for each pixel, enabling advanced computer vision and depth-aware rendering applications.
§Features
- Multiple Resolution Support: Quarter, half, and full resolution depth textures
- Raw and Processed Data: Access to both raw sensor data and smoothed depth information
- Confidence Values: Per-pixel confidence metrics for depth accuracy assessment
- Swapchain Management: Efficient depth texture rendering through OpenXR swapchains
- System Capability Detection: Runtime checking for depth tracking support
§OpenXR Specification
This implementation follows the XR_ANDROID_depth_texture extension specification version 1, providing access to Android-specific depth sensor capabilities. https://developer.android.com/develop/xr/openxr/extensions/XR_ANDROID_depth_texture
Structs§
- Depth
Resolution Info Android - Structures for the depth texture extension Information about depth resolution capabilities
- Depth
Surface Info Android - Surface information for depth texture rendering
- Depth
Swapchain Create Info Android - Creation parameters for depth swapchains
- Depth
Swapchain Image Android - Individual depth swapchain image containing multiple texture types
- Depth
Texture Android - Handle to a depth texture resource
- Depth
Texture Create Info Android - Creation parameters for depth textures
- XrAndroid
Depth Texture - Main extension handler for Android depth texture functionality
- XrSystem
Depth Tracking PropertiesANDROID - System properties structure for depth tracking capabilities
Constants§
- SURFACE_
ORIGIN_ BOTTOM_ LEFT_ ANDROID - SURFACE_
ORIGIN_ TOP_ LEFT_ ANDROID - Surface origin constants for Android depth textures
- XR_
ANDROID_ DEPTH_ TEXTURE_ EXTENSION_ NAME - Extension name for XR_FB_render_model
- XR_
DEPTH_ RESOLUTION_ FULL_ ANDROID - XR_
DEPTH_ RESOLUTION_ HALF_ ANDROID - XR_
DEPTH_ RESOLUTION_ QUARTER_ ANDROID - Depth resolution enumeration values These define the available depth texture resolutions relative to the main display
- XR_
DEPTH_ SWAPCHAIN_ CREATE_ RAW_ CONFIDENCE_ IMAGE_ BIT_ ANDROID - XR_
DEPTH_ SWAPCHAIN_ CREATE_ RAW_ DEPTH_ IMAGE_ BIT_ ANDROID - XR_
DEPTH_ SWAPCHAIN_ CREATE_ SMOOTH_ CONFIDENCE_ IMAGE_ BIT_ ANDROID - XR_
DEPTH_ SWAPCHAIN_ CREATE_ SMOOTH_ DEPTH_ IMAGE_ BIT_ ANDROID - Depth swapchain creation flags for different types of depth data These flags control which depth and confidence images are generated
- XR_
TYPE_ DEPTH_ RESOLUTION_ INFO_ ANDROID_ RAW - Raw structure type constants for direct OpenXR API usage
- XR_
TYPE_ DEPTH_ SURFACE_ INFO_ ANDROID_ RAW - XR_
TYPE_ DEPTH_ SWAPCHAIN_ CREATE_ INFO_ ANDROID_ RAW - XR_
TYPE_ DEPTH_ SWAPCHAIN_ IMAGE_ ANDROID_ RAW - XR_
TYPE_ DEPTH_ TEXTURE_ ANDROID_ RAW - XR_
TYPE_ DEPTH_ TEXTURE_ CREATE_ INFO_ ANDROID_ RAW - XR_
TYPE_ SYSTEM_ DEPTH_ TRACKING_ PROPERTIES_ ANDROID_ RAW
Functions§
- create_
depth_ swapchain_ info - Create a depth swapchain creation info structure
- create_
depth_ texture_ info - Helper function to create depth texture creation info
- get_
resolution_ dimensions - Helper functions used by lib.rs Get the pixel dimensions for a given depth resolution enum
- is_
android_ depth_ texture_ extension_ available - Convenience function to check if XR_FB_render_model extension is available
- test_
depth_ texture_ extension - Comprehensive test function for XR_ANDROID_depth_texture extension
- xr_
type_ depth_ resolution_ info_ android - Structure type functions (using raw values from OpenXR specification)
- xr_
type_ depth_ surface_ info_ android - xr_
type_ depth_ swapchain_ create_ info_ android - xr_
type_ depth_ swapchain_ image_ android - xr_
type_ depth_ texture_ android - xr_
type_ depth_ texture_ create_ info_ android - xr_
type_ system_ depth_ tracking_ properties_ android
Type Aliases§
- Action
Type - Depth
Resolution Android - Depth
Swapchain Create Flags Android - Reference
Space Type - Session
State - Space
Location Flags - Surface
Origin Android - Type definitions for XR_ANDROID_depth_texture (openxr_sys compatible)
- View
Configuration Type