public class BGFXCapsGPU
extends org.lwjgl.system.Struct
vendorId – vendor PCI id. One of:PCI_ID_NONE | PCI_ID_SOFTWARE_RASTERIZER | PCI_ID_AMD | PCI_ID_INTEL | PCI_ID_NVIDIA |
deviceId – device id
struct bgfx_caps_gpu_t {
uint16_t vendorId;
uint16_t deviceId;
}| Modifier and Type | Class and Description |
|---|---|
static class |
BGFXCapsGPU.Buffer
An array of
BGFXCapsGPU structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DEVICEID
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
VENDORID
The struct member offsets.
|
| Constructor and Description |
|---|
BGFXCapsGPU(java.nio.ByteBuffer container)
Creates a
BGFXCapsGPU instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static BGFXCapsGPU |
create(long address)
Returns a new
BGFXCapsGPU instance for the specified memory address. |
static BGFXCapsGPU.Buffer |
create(long address,
int capacity)
Create a
BGFXCapsGPU.Buffer instance at the specified memory. |
static BGFXCapsGPU |
createSafe(long address)
|
static BGFXCapsGPU.Buffer |
createSafe(long address,
int capacity)
|
short |
deviceId()
Returns the value of the
deviceId field. |
static short |
ndeviceId(long struct)
Unsafe version of
deviceId(). |
static short |
nvendorId(long struct)
Unsafe version of
vendorId(). |
int |
sizeof() |
short |
vendorId()
Returns the value of the
vendorId field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int VENDORID
public static final int DEVICEID
public BGFXCapsGPU(java.nio.ByteBuffer container)
BGFXCapsGPU 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 short vendorId()
vendorId field.public short deviceId()
deviceId field.public static BGFXCapsGPU create(long address)
BGFXCapsGPU instance for the specified memory address.@Nullable public static BGFXCapsGPU createSafe(long address)
public static BGFXCapsGPU.Buffer create(long address, int capacity)
BGFXCapsGPU.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static BGFXCapsGPU.Buffer createSafe(long address, int capacity)
public static short nvendorId(long struct)
vendorId().public static short ndeviceId(long struct)
deviceId().Copyright LWJGL. All Rights Reserved. License terms.