Package org.lwjgl.opengl
Class GPU_DEVICE
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Receives information about the display device specified by the
deviceIndex
parameter of the EnumGpuDevicesNV
function.
Layout
struct GPU_DEVICE {
DWORD cb()
;
CHAR DeviceName()
[32];
CHAR DeviceString()
[128];
DWORD Flags()
;
RECT
rcVirtualScreen()
;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionGPU_DEVICE
(ByteBuffer container) Creates aGPU_DEVICE
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic GPU_DEVICE
calloc()
Returns a newGPU_DEVICE
instance allocated withmemCalloc
.static GPU_DEVICE.Buffer
calloc
(int capacity) Returns a newGPU_DEVICE.Buffer
instance allocated withmemCalloc
.static GPU_DEVICE.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newGPU_DEVICE.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static GPU_DEVICE
calloc
(MemoryStack stack) Returns a newGPU_DEVICE
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static GPU_DEVICE
Deprecated.static GPU_DEVICE.Buffer
callocStack
(int capacity) Deprecated.static GPU_DEVICE.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static GPU_DEVICE
callocStack
(MemoryStack stack) Deprecated.int
cb()
the size of theGPU_DEVICE
structure.static GPU_DEVICE
create()
Returns a newGPU_DEVICE
instance allocated withBufferUtils
.static GPU_DEVICE.Buffer
create
(int capacity) Returns a newGPU_DEVICE.Buffer
instance allocated withBufferUtils
.static GPU_DEVICE
create
(long address) Returns a newGPU_DEVICE
instance for the specified memory address.static GPU_DEVICE.Buffer
create
(long address, int capacity) Create aGPU_DEVICE.Buffer
instance at the specified memory.static GPU_DEVICE
createSafe
(long address) static GPU_DEVICE.Buffer
createSafe
(long address, int capacity) a string identifying the display device name.a string identifying the display device name.a string describing the GPU for this display device.a string describing the GPU for this display device.int
Flags()
indicates the state of the display devicestatic GPU_DEVICE
malloc()
Returns a newGPU_DEVICE
instance allocated withmemAlloc
.static GPU_DEVICE.Buffer
malloc
(int capacity) Returns a newGPU_DEVICE.Buffer
instance allocated withmemAlloc
.static GPU_DEVICE.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newGPU_DEVICE.Buffer
instance allocated on the specifiedMemoryStack
.static GPU_DEVICE
malloc
(MemoryStack stack) Returns a newGPU_DEVICE
instance allocated on the specifiedMemoryStack
.static GPU_DEVICE
Deprecated.static GPU_DEVICE.Buffer
mallocStack
(int capacity) Deprecated.static GPU_DEVICE.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static GPU_DEVICE
mallocStack
(MemoryStack stack) Deprecated.static int
ncb
(long struct) Unsafe version ofcb()
.static ByteBuffer
nDeviceName
(long struct) Unsafe version ofDeviceName()
.static String
nDeviceNameString
(long struct) Unsafe version ofDeviceNameString()
.static ByteBuffer
nDeviceString
(long struct) Unsafe version ofDeviceString()
.static String
nDeviceStringString
(long struct) Unsafe version ofDeviceStringString()
.static int
nFlags
(long struct) Unsafe version ofFlags()
.static RECT
nrcVirtualScreen
(long struct) Unsafe version ofrcVirtualScreen()
.specifies the display device rectangle, in virtual screen coordinates.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
CB
public static final int CBThe struct member offsets. -
DEVICENAME
public static final int DEVICENAMEThe struct member offsets. -
DEVICESTRING
public static final int DEVICESTRINGThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
RCVIRTUALSCREEN
public static final int RCVIRTUALSCREENThe struct member offsets.
-
-
Constructor Details
-
GPU_DEVICE
Creates aGPU_DEVICE
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<GPU_DEVICE>
-
cb
public int cb()the size of theGPU_DEVICE
structure. Before callingEnumGpuDevicesNV
, setcb
to the size, in bytes, ofGPU_DEVICE
. -
DeviceName
a string identifying the display device name. This will be the same string as stored in theDeviceName
field of theDISPLAY_DEVICE
structure, which is filled in byEnumDisplayDevices
. -
DeviceNameString
a string identifying the display device name. This will be the same string as stored in theDeviceName
field of theDISPLAY_DEVICE
structure, which is filled in byEnumDisplayDevices
. -
DeviceString
a string describing the GPU for this display device. It is the same string as stored in theDeviceString
field in theDISPLAY_DEVICE
structure that is filled in byEnumDisplayDevices
when it describes a display adapter (and not a monitor). -
DeviceStringString
a string describing the GPU for this display device. It is the same string as stored in theDeviceString
field in theDISPLAY_DEVICE
structure that is filled in byEnumDisplayDevices
when it describes a display adapter (and not a monitor). -
Flags
public int Flags()indicates the state of the display device -
rcVirtualScreen
specifies the display device rectangle, in virtual screen coordinates. The value ofrcVirtualScreen
is undefined if the device is not part of the desktop, i.e.DISPLAY_DEVICE_ATTACHED_TO_DESKTOP
is not set in theFlags
field. -
malloc
Returns a newGPU_DEVICE
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newGPU_DEVICE
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newGPU_DEVICE
instance allocated withBufferUtils
. -
create
Returns a newGPU_DEVICE
instance for the specified memory address. -
createSafe
-
malloc
Returns a newGPU_DEVICE.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newGPU_DEVICE.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newGPU_DEVICE.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aGPU_DEVICE.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newGPU_DEVICE
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newGPU_DEVICE
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newGPU_DEVICE.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newGPU_DEVICE.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
ncb
public static int ncb(long struct) Unsafe version ofcb()
. -
nDeviceName
Unsafe version ofDeviceName()
. -
nDeviceNameString
Unsafe version ofDeviceNameString()
. -
nDeviceString
Unsafe version ofDeviceString()
. -
nDeviceStringString
Unsafe version ofDeviceStringString()
. -
nFlags
public static int nFlags(long struct) Unsafe version ofFlags()
. -
nrcVirtualScreen
Unsafe version ofrcVirtualScreen()
.
-