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

org.lwjgl.vulkan.EXTAcquireXlibDisplay Maven / Gradle / Ivy

Go to download

A new generation graphics and compute API that provides high-efficiency, cross-platform access to modern GPUs used in a wide variety of devices from PCs and consoles to mobile phones and embedded platforms.

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

import java.nio.*;

import org.lwjgl.system.*;

import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.JNI.*;
import static org.lwjgl.system.MemoryUtil.*;

/**
 * This extension allows an application to take exclusive control on a display currently associated with an X11 screen. When control is acquired, the display will be deassociated from the X11 screen until control is released or the specified display connection is closed. Essentially, the X11 screen will behave as if the monitor has been unplugged until control is released.
 * 
 * 
VK_EXT_acquire_xlib_display
* *
*
Name String
*
{@code VK_EXT_acquire_xlib_display}
*
Extension Type
*
Instance extension
*
Registered Extension Number
*
90
*
Revision
*
1
*
Extension and Version Dependencies
*
    *
  • Requires Vulkan 1.0
  • *
  • Requires {@link EXTDirectModeDisplay VK_EXT_direct_mode_display}
  • *
*
Contact
*
*
* *
Other Extension Metadata
* *
*
Last Modified Date
*
2016-12-13
*
IP Status
*
No known IP claims.
*
Contributors
*
    *
  • Dave Airlie, Red Hat
  • *
  • Pierre Boudier, NVIDIA
  • *
  • James Jones, NVIDIA
  • *
  • Damien Leone, NVIDIA
  • *
  • Pierre-Loup Griffais, Valve
  • *
  • Liam Middlebrook, NVIDIA
  • *
  • Daniel Vetter, Intel
  • *
*
*/ public class EXTAcquireXlibDisplay { /** The extension specification version. */ public static final int VK_EXT_ACQUIRE_XLIB_DISPLAY_SPEC_VERSION = 1; /** The extension name. */ public static final String VK_EXT_ACQUIRE_XLIB_DISPLAY_EXTENSION_NAME = "VK_EXT_acquire_xlib_display"; protected EXTAcquireXlibDisplay() { throw new UnsupportedOperationException(); } // --- [ vkAcquireXlibDisplayEXT ] --- /** * Acquire access to a VkDisplayKHR using Xlib. * *
C Specification
* *

To acquire permission to directly access a display in Vulkan from an X11 server, call:

* *

     * VkResult vkAcquireXlibDisplayEXT(
     *     VkPhysicalDevice                            physicalDevice,
     *     Display*                                    dpy,
     *     VkDisplayKHR                                display);
* *
Description
* *

All permissions necessary to control the display are granted to the Vulkan instance associated with {@code physicalDevice} until the display is released or the X11 connection specified by {@code dpy} is terminated. Permission to access the display may be temporarily revoked during periods when the X11 server from which control was acquired itself loses access to {@code display}. During such periods, operations which require access to the display must fail with an approriate error code. If the X11 server associated with {@code dpy} does not own {@code display}, or if permission to access it has already been acquired by another entity, the call must return the error code {@link VK10#VK_ERROR_INITIALIZATION_FAILED ERROR_INITIALIZATION_FAILED}.

* *
Note
* *

One example of when an X11 server loses access to a display is when it loses ownership of its virtual terminal.

*
* *
Valid Usage (Implicit)
* *
    *
  • {@code physicalDevice} must be a valid {@code VkPhysicalDevice} handle
  • *
  • {@code dpy} must be a valid pointer to a {@code Display} value
  • *
  • {@code display} must be a valid {@code VkDisplayKHR} handle
  • *
  • {@code display} must have been created, allocated, or retrieved from {@code physicalDevice}
  • *
* *
Return Codes
* *
*
On success, this command returns
*
    *
  • {@link VK10#VK_SUCCESS SUCCESS}
  • *
*
On failure, this command returns
*
    *
  • {@link VK10#VK_ERROR_OUT_OF_HOST_MEMORY ERROR_OUT_OF_HOST_MEMORY}
  • *
  • {@link VK10#VK_ERROR_INITIALIZATION_FAILED ERROR_INITIALIZATION_FAILED}
  • *
*
* * @param physicalDevice The physical device the display is on. * @param dpy A connection to the X11 server that currently owns {@code display}. * @param display The display the caller wishes to control in Vulkan. */ @NativeType("VkResult") public static int vkAcquireXlibDisplayEXT(VkPhysicalDevice physicalDevice, @NativeType("Display *") long dpy, @NativeType("VkDisplayKHR") long display) { long __functionAddress = physicalDevice.getCapabilities().vkAcquireXlibDisplayEXT; if (CHECKS) { check(__functionAddress); check(dpy); } return callPPJI(physicalDevice.address(), dpy, display, __functionAddress); } // --- [ vkGetRandROutputDisplayEXT ] --- /** Unsafe version of: {@link #vkGetRandROutputDisplayEXT GetRandROutputDisplayEXT} */ public static int nvkGetRandROutputDisplayEXT(VkPhysicalDevice physicalDevice, long dpy, long rrOutput, long pDisplay) { long __functionAddress = physicalDevice.getCapabilities().vkGetRandROutputDisplayEXT; if (CHECKS) { check(__functionAddress); check(dpy); } return callPPNPI(physicalDevice.address(), dpy, rrOutput, pDisplay, __functionAddress); } /** * Query the VkDisplayKHR corresponding to an X11 RandR Output. * *
C Specification
* *

When acquiring displays from an X11 server, an application may also wish to enumerate and identify them using a native handle rather than a {@code VkDisplayKHR} handle. To determine the {@code VkDisplayKHR} handle corresponding to an X11 RandR Output, call:

* *

     * VkResult vkGetRandROutputDisplayEXT(
     *     VkPhysicalDevice                            physicalDevice,
     *     Display*                                    dpy,
     *     RROutput                                    rrOutput,
     *     VkDisplayKHR*                               pDisplay);
* *
Description
* *

If there is no {@code VkDisplayKHR} corresponding to {@code rrOutput} on {@code physicalDevice}, {@link VK10#VK_NULL_HANDLE NULL_HANDLE} must be returned in {@code pDisplay}.

* *
Valid Usage (Implicit)
* *
    *
  • {@code physicalDevice} must be a valid {@code VkPhysicalDevice} handle
  • *
  • {@code dpy} must be a valid pointer to a {@code Display} value
  • *
  • {@code pDisplay} must be a valid pointer to a {@code VkDisplayKHR} handle
  • *
* *
Return Codes
* *
*
On success, this command returns
*
    *
  • {@link VK10#VK_SUCCESS SUCCESS}
  • *
*
On failure, this command returns
*
    *
  • {@link VK10#VK_ERROR_OUT_OF_HOST_MEMORY ERROR_OUT_OF_HOST_MEMORY}
  • *
*
* * @param physicalDevice The physical device to query the display handle on. * @param dpy A connection to the X11 server from which {@code rrOutput} was queried. * @param rrOutput An X11 RandR output ID. * @param pDisplay The corresponding {@code VkDisplayKHR} handle will be returned here. */ @NativeType("VkResult") public static int vkGetRandROutputDisplayEXT(VkPhysicalDevice physicalDevice, @NativeType("Display *") long dpy, @NativeType("RROutput") long rrOutput, @NativeType("VkDisplayKHR *") LongBuffer pDisplay) { if (CHECKS) { check(pDisplay, 1); } return nvkGetRandROutputDisplayEXT(physicalDevice, dpy, rrOutput, memAddress(pDisplay)); } /** Array version of: {@link #vkGetRandROutputDisplayEXT GetRandROutputDisplayEXT} */ @NativeType("VkResult") public static int vkGetRandROutputDisplayEXT(VkPhysicalDevice physicalDevice, @NativeType("Display *") long dpy, @NativeType("RROutput") long rrOutput, @NativeType("VkDisplayKHR *") long[] pDisplay) { long __functionAddress = physicalDevice.getCapabilities().vkGetRandROutputDisplayEXT; if (CHECKS) { check(__functionAddress); check(dpy); check(pDisplay, 1); } return callPPNPI(physicalDevice.address(), dpy, rrOutput, pDisplay, __functionAddress); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy