public class GPU_DEVICE
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
deviceIndex parameter of the EnumGpuDevicesNV function.
cb –
the size of the GPU_DEVICE structure. Before calling EnumGpuDevicesNV, set cb to the size, in bytes, of GPU_DEVICE.DeviceName[32] –
a string identifying the display device name. This will be the same string as stored in the DeviceName field of the DISPLAY_DEVICE
structure, which is filled in by EnumDisplayDevices.DeviceString[128] –
a string describing the GPU for this display device. It is the same string as stored in the DeviceString field in the DISPLAY_DEVICE
structure that is filled in by EnumDisplayDevices when it describes a display adapter (and not a monitor).Flags – indicates the state of the display devicercVirtualScreen –
specifies the display device rectangle, in virtual screen coordinates. The value of rcVirtualScreen is undefined if the device is not part of
the desktop, i.e. DISPLAY_DEVICE_ATTACHED_TO_DESKTOP is not set in the Flags field.
struct GPU_DEVICE {
DWORD cb;
CHAR DeviceName[32];
CHAR DeviceString[128];
DWORD Flags;
RECT rcVirtualScreen;
}| Modifier and Type | Class and Description |
|---|---|
static class |
GPU_DEVICE.Buffer
An array of
GPU_DEVICE structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CB
The struct member offsets.
|
static int |
DEVICENAME
The struct member offsets.
|
static int |
DEVICESTRING
The struct member offsets.
|
static int |
FLAGS
The struct member offsets.
|
static int |
RCVIRTUALSCREEN
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
GPU_DEVICE(java.nio.ByteBuffer container)
Creates a
GPU_DEVICE instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static GPU_DEVICE |
calloc()
Returns a new
GPU_DEVICE instance allocated with memCalloc. |
static GPU_DEVICE.Buffer |
calloc(int capacity)
Returns a new
GPU_DEVICE.Buffer instance allocated with memCalloc. |
static GPU_DEVICE |
callocStack()
Returns a new
GPU_DEVICE instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static GPU_DEVICE.Buffer |
callocStack(int capacity)
Returns a new
GPU_DEVICE.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static GPU_DEVICE.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
GPU_DEVICE.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static GPU_DEVICE |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
GPU_DEVICE instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
cb()
Returns the value of the
cb field. |
static GPU_DEVICE |
create()
Returns a new
GPU_DEVICE instance allocated with BufferUtils. |
static GPU_DEVICE.Buffer |
create(int capacity)
Returns a new
GPU_DEVICE.Buffer instance allocated with BufferUtils. |
static GPU_DEVICE |
create(long address)
Returns a new
GPU_DEVICE instance for the specified memory address. |
static GPU_DEVICE.Buffer |
create(long address,
int capacity)
Create a
GPU_DEVICE.Buffer instance at the specified memory. |
static GPU_DEVICE |
createSafe(long address)
|
static GPU_DEVICE.Buffer |
createSafe(long address,
int capacity)
|
java.nio.ByteBuffer |
DeviceName()
Returns a
ByteBuffer view of the DeviceName field. |
java.lang.String |
DeviceNameString()
Decodes the null-terminated string stored in the
DeviceName field. |
java.nio.ByteBuffer |
DeviceString()
Returns a
ByteBuffer view of the DeviceString field. |
java.lang.String |
DeviceStringString()
Decodes the null-terminated string stored in the
DeviceString field. |
int |
Flags()
Returns the value of the
Flags field. |
static GPU_DEVICE |
malloc()
Returns a new
GPU_DEVICE instance allocated with memAlloc. |
static GPU_DEVICE.Buffer |
malloc(int capacity)
Returns a new
GPU_DEVICE.Buffer instance allocated with memAlloc. |
static GPU_DEVICE |
mallocStack()
Returns a new
GPU_DEVICE instance allocated on the thread-local MemoryStack. |
static GPU_DEVICE.Buffer |
mallocStack(int capacity)
Returns a new
GPU_DEVICE.Buffer instance allocated on the thread-local MemoryStack. |
static GPU_DEVICE.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
GPU_DEVICE.Buffer instance allocated on the specified MemoryStack. |
static GPU_DEVICE |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
GPU_DEVICE instance allocated on the specified MemoryStack. |
static int |
ncb(long struct)
Unsafe version of
cb(). |
static java.nio.ByteBuffer |
nDeviceName(long struct)
Unsafe version of
DeviceName(). |
static java.lang.String |
nDeviceNameString(long struct)
Unsafe version of
DeviceNameString(). |
static java.nio.ByteBuffer |
nDeviceString(long struct)
Unsafe version of
DeviceString(). |
static java.lang.String |
nDeviceStringString(long struct)
Unsafe version of
DeviceStringString(). |
static int |
nFlags(long struct)
Unsafe version of
Flags(). |
static org.lwjgl.system.windows.RECT |
nrcVirtualScreen(long struct)
Unsafe version of
rcVirtualScreen(). |
org.lwjgl.system.windows.RECT |
rcVirtualScreen()
Returns a
RECT view of the rcVirtualScreen field. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int CB
public static final int DEVICENAME
public static final int DEVICESTRING
public static final int FLAGS
public static final int RCVIRTUALSCREEN
public GPU_DEVICE(java.nio.ByteBuffer container)
GPU_DEVICE instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be
visible to the struct instance and vice versa.
The created instance holds a strong reference to the container object.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int cb()
cb field.public java.nio.ByteBuffer DeviceName()
ByteBuffer view of the DeviceName field.public java.lang.String DeviceNameString()
DeviceName field.public java.nio.ByteBuffer DeviceString()
ByteBuffer view of the DeviceString field.public java.lang.String DeviceStringString()
DeviceString field.public int Flags()
Flags field.public org.lwjgl.system.windows.RECT rcVirtualScreen()
RECT view of the rcVirtualScreen field.public static GPU_DEVICE malloc()
GPU_DEVICE instance allocated with memAlloc. The instance must be explicitly freed.public static GPU_DEVICE calloc()
GPU_DEVICE instance allocated with memCalloc. The instance must be explicitly freed.public static GPU_DEVICE create()
GPU_DEVICE instance allocated with BufferUtils.public static GPU_DEVICE create(long address)
GPU_DEVICE instance for the specified memory address.@Nullable public static GPU_DEVICE createSafe(long address)
public static GPU_DEVICE.Buffer malloc(int capacity)
GPU_DEVICE.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static GPU_DEVICE.Buffer calloc(int capacity)
GPU_DEVICE.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static GPU_DEVICE.Buffer create(int capacity)
GPU_DEVICE.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static GPU_DEVICE.Buffer create(long address, int capacity)
GPU_DEVICE.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static GPU_DEVICE.Buffer createSafe(long address, int capacity)
public static GPU_DEVICE mallocStack()
GPU_DEVICE instance allocated on the thread-local MemoryStack.public static GPU_DEVICE callocStack()
GPU_DEVICE instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static GPU_DEVICE mallocStack(org.lwjgl.system.MemoryStack stack)
GPU_DEVICE instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static GPU_DEVICE callocStack(org.lwjgl.system.MemoryStack stack)
GPU_DEVICE instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static GPU_DEVICE.Buffer mallocStack(int capacity)
GPU_DEVICE.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static GPU_DEVICE.Buffer callocStack(int capacity)
GPU_DEVICE.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static GPU_DEVICE.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
GPU_DEVICE.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static GPU_DEVICE.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
GPU_DEVICE.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int ncb(long struct)
cb().public static java.nio.ByteBuffer nDeviceName(long struct)
DeviceName().public static java.lang.String nDeviceNameString(long struct)
DeviceNameString().public static java.nio.ByteBuffer nDeviceString(long struct)
DeviceString().public static java.lang.String nDeviceStringString(long struct)
DeviceStringString().public static int nFlags(long struct)
Flags().public static org.lwjgl.system.windows.RECT nrcVirtualScreen(long struct)
rcVirtualScreen().Copyright LWJGL. All Rights Reserved. License terms.