Package org.lwjgl.openxr
Class FBFoveation
- java.lang.Object
-
- org.lwjgl.openxr.FBFoveation
-
public class FBFoveation extends java.lang.ObjectThe FB_foveation extension.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringXR_FB_FOVEATION_EXTENSION_NAMEThe extension name.static intXR_FB_foveation_SPEC_VERSIONThe extension specification version.static intXR_OBJECT_TYPE_FOVEATION_PROFILE_FBExtendsXrObjectType.static intXR_SWAPCHAIN_CREATE_FOVEATION_FRAGMENT_DENSITY_MAP_BIT_FB
XR_SWAPCHAIN_CREATE_FOVEATION_SCALED_BIN_BIT_FBXrSwapchainCreateFoveationFlagBitsFBstatic intXR_TYPE_FOVEATION_PROFILE_CREATE_INFO_FB
XR_TYPE_SWAPCHAIN_CREATE_INFO_FOVEATION_FB
XR_TYPE_SWAPCHAIN_STATE_FOVEATION_FBExtendsXrStructureType.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intnxrCreateFoveationProfileFB(XrSession session, long createInfo, long profile)Unsafe version of:CreateFoveationProfileFBstatic intxrCreateFoveationProfileFB(XrSession session, XrFoveationProfileCreateInfoFB createInfo, org.lwjgl.PointerBuffer profile)Create a foveation profile.static intxrDestroyFoveationProfileFB(XrFoveationProfileFB profile)Destroy a foveation profile.
-
-
-
Field Detail
-
XR_FB_foveation_SPEC_VERSION
The extension specification version.
-
XR_FB_FOVEATION_EXTENSION_NAME
The extension name.
-
XR_OBJECT_TYPE_FOVEATION_PROFILE_FB
ExtendsXrObjectType.
-
XR_TYPE_FOVEATION_PROFILE_CREATE_INFO_FB, XR_TYPE_SWAPCHAIN_CREATE_INFO_FOVEATION_FB, XR_TYPE_SWAPCHAIN_STATE_FOVEATION_FB
ExtendsXrStructureType.Enum values:
-
XR_SWAPCHAIN_CREATE_FOVEATION_SCALED_BIN_BIT_FB, XR_SWAPCHAIN_CREATE_FOVEATION_FRAGMENT_DENSITY_MAP_BIT_FB
XrSwapchainCreateFoveationFlagBitsFBEnum values:
-
-
Method Detail
-
nxrCreateFoveationProfileFB
public static int nxrCreateFoveationProfileFB(XrSession session, long createInfo, long profile)
Unsafe version of:CreateFoveationProfileFB
-
xrCreateFoveationProfileFB
public static int xrCreateFoveationProfileFB(XrSession session, XrFoveationProfileCreateInfoFB createInfo, org.lwjgl.PointerBuffer profile)
Create a foveation profile.C Specification
The
CreateFoveationProfileFBfunction is defined as:XrResult xrCreateFoveationProfileFB( XrSession session, const XrFoveationProfileCreateInfoFB* createInfo, XrFoveationProfileFB* profile);Description
Creates an
XrFoveationProfileFBhandle. The returned foveation profile handle may be subsequently used in API calls.Valid Usage (Implicit)
- The
XR_FB_foveationextension must be enabled prior to callingCreateFoveationProfileFB sessionmust be a validXrSessionhandlecreateInfomust be a pointer to a validXrFoveationProfileCreateInfoFBstructureprofilemust be a pointer to anXrFoveationProfileFBhandle
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
session- theXrSessionthat created the swapchains to which this foveation profile will be applied.createInfo- a pointer to anXrFoveationProfileCreateInfoFBstructure containing parameters to be used to create the foveation profile.profile- a pointer to a handle in which the createdXrFoveationProfileFBis returned.
- The
-
xrDestroyFoveationProfileFB
public static int xrDestroyFoveationProfileFB(XrFoveationProfileFB profile)
Destroy a foveation profile.C Specification
The
DestroyFoveationProfileFBfunction is defined as:XrResult xrDestroyFoveationProfileFB( XrFoveationProfileFB profile);Description
XrFoveationProfileFBhandles are destroyed usingDestroyFoveationProfileFB. AXrFoveationProfileFBmay be safely destroyed after being applied to a swapchain state usingUpdateSwapchainFBwithout affecting the foveation parameters of the swapchain. The application is responsible for ensuring that it has no calls using profile in progress when the foveation profile is destroyed.Valid Usage (Implicit)
- The
XR_FB_foveationextension must be enabled prior to callingDestroyFoveationProfileFB profilemust be a validXrFoveationProfileFBhandle
Thread Safety
- Access to
profile, and any child handles, must be externally synchronized
Return Codes
- On success, this command returns
- On failure, this command returns
- Parameters:
profile- theXrFoveationProfileFBto destroy.
- The
-
-