All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.openxr.FBCompositionLayerDepthTest Maven / Gradle / Ivy

Go to download

A royalty-free, open standard that provides high-performance access to Augmented Reality (AR) and Virtual Reality (VR)—collectively known as XR—platforms and devices.

There is a newer version: 3.3.6
Show newest version
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.openxr;

/**
 * The XR_FB_composition_layer_depth_test extension.
 * 
 * 

This extension enables depth-tested layer composition. The compositor will maintain a depth buffer in addition to a color buffer. The depth buffer is cleared to a depth corresponding to the infinitely far distance at the beginning of composition.

* *

When composing each layer, if depth testing is requested, the incoming layer depths are transformed into the compositor window space depth and compared to the depth stored in the frame buffer. After the transformation, incoming depths that are outside of the range of the compositor window space depth must be clamped. If the depth test fails, the fragment is discarded. If the depth test passes the depth buffer is updated if depth writes are enabled, and color processing continues.

* *

Depth testing requires depth values for the layer. For projection layers, this can be supplied via the {@link KHRCompositionLayerDepth XR_KHR_composition_layer_depth} extension. For geometric primitive layers, the runtime computes the depth of the sample directly from the layer parameters. An {@link XrCompositionLayerDepthTestFB} chained to layers without depth must be ignored.

*/ public final class FBCompositionLayerDepthTest { /** The extension specification version. */ public static final int XR_FB_composition_layer_depth_test_SPEC_VERSION = 1; /** The extension name. */ public static final String XR_FB_COMPOSITION_LAYER_DEPTH_TEST_EXTENSION_NAME = "XR_FB_composition_layer_depth_test"; /** Extends {@code XrStructureType}. */ public static final int XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_FB = 1000212000; /** * XrCompareOpFB - Compare Operation * *
Enumerant Descriptions
* *
    *
  • {@link #XR_COMPARE_OP_NEVER_FB COMPARE_OP_NEVER_FB} — Comparison is never true.
  • *
  • {@link #XR_COMPARE_OP_LESS_FB COMPARE_OP_LESS_FB} — Comparison is true if source less than is destination.
  • *
  • {@link #XR_COMPARE_OP_EQUAL_FB COMPARE_OP_EQUAL_FB} — Comparison is true if source is equal to destination.
  • *
  • {@link #XR_COMPARE_OP_LESS_OR_EQUAL_FB COMPARE_OP_LESS_OR_EQUAL_FB} — Comparison is true if source is less than or equal to destination.
  • *
  • {@link #XR_COMPARE_OP_GREATER_FB COMPARE_OP_GREATER_FB} — Comparison is true if source is greater than destination.
  • *
  • {@link #XR_COMPARE_OP_NOT_EQUAL_FB COMPARE_OP_NOT_EQUAL_FB} — Comparison is true if source is not equal to destination.
  • *
  • {@link #XR_COMPARE_OP_GREATER_OR_EQUAL_FB COMPARE_OP_GREATER_OR_EQUAL_FB} — Comparison is true if source is greater than or equal to destination.
  • *
  • {@link #XR_COMPARE_OP_ALWAYS_FB COMPARE_OP_ALWAYS_FB} — Comparison is always true.
  • *
* *
See Also
* *

{@link XrCompositionLayerDepthTestFB}

*/ public static final int XR_COMPARE_OP_NEVER_FB = 0, XR_COMPARE_OP_LESS_FB = 1, XR_COMPARE_OP_EQUAL_FB = 2, XR_COMPARE_OP_LESS_OR_EQUAL_FB = 3, XR_COMPARE_OP_GREATER_FB = 4, XR_COMPARE_OP_NOT_EQUAL_FB = 5, XR_COMPARE_OP_GREATER_OR_EQUAL_FB = 6, XR_COMPARE_OP_ALWAYS_FB = 7; private FBCompositionLayerDepthTest() {} }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy