public class BGFXCaps
extends org.lwjgl.system.Struct
rendererType – renderer backend type. One of:supported – supported functionality. One or more of:vendorId – selected GPU vendor PCI id. One of:PCI_ID_NONE | PCI_ID_SOFTWARE_RASTERIZER | PCI_ID_AMD | PCI_ID_INTEL | PCI_ID_NVIDIA |
deviceId – selected GPU device idhomogeneousDepth – true when NDC depth is in [-1, 1] range, otherwise its [0, 1]originBottomLeft – true when NDC origin is at bottom leftnumGPUs – number of enumerated GPUsgpu[4] – enumerated GPUslimits – rendering limitsformats[BGFX_TEXTURE_FORMAT_COUNT] – supported texture formats
struct bgfx_caps_t {
bgfx_renderer_type_t rendererType;
uint64_t supported;
uint16_t vendorId;
uint16_t deviceId;
bool homogeneousDepth;
bool originBottomLeft;
uint8_t numGPUs;
bgfx_caps_gpu_t gpu[4];
bgfx_caps_limits_t limits;
uint16_t formats[BGFX_TEXTURE_FORMAT_COUNT];
}| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DEVICEID
The struct member offsets.
|
static int |
FORMATS
The struct member offsets.
|
static int |
GPU
The struct member offsets.
|
static int |
HOMOGENEOUSDEPTH
The struct member offsets.
|
static int |
LIMITS
The struct member offsets.
|
static int |
NUMGPUS
The struct member offsets.
|
static int |
ORIGINBOTTOMLEFT
The struct member offsets.
|
static int |
RENDERERTYPE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SUPPORTED
The struct member offsets.
|
static int |
VENDORID
The struct member offsets.
|
| Constructor and Description |
|---|
BGFXCaps(java.nio.ByteBuffer container)
Creates a
BGFXCaps instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static BGFXCaps |
create(long address)
Returns a new
BGFXCaps instance for the specified memory address. |
static BGFXCaps |
createSafe(long address)
|
short |
deviceId()
Returns the value of the
deviceId field. |
java.nio.ShortBuffer |
formats()
Returns a
ShortBuffer view of the formats field. |
short |
formats(int index)
Returns the value at the specified index of the
formats field. |
BGFXCapsGPU.Buffer |
gpu()
Returns a
BGFXCapsGPU.Buffer view of the gpu field. |
BGFXCapsGPU |
gpu(int index)
Returns a
BGFXCapsGPU view of the struct at the specified index of the gpu field. |
boolean |
homogeneousDepth()
Returns the value of the
homogeneousDepth field. |
BGFXCapsLimits |
limits()
Returns a
BGFXCapsLimits view of the limits field. |
static short |
ndeviceId(long struct)
Unsafe version of
deviceId(). |
static java.nio.ShortBuffer |
nformats(long struct)
Unsafe version of
formats(). |
static short |
nformats(long struct,
int index)
Unsafe version of
formats. |
static BGFXCapsGPU.Buffer |
ngpu(long struct)
Unsafe version of
gpu(). |
static BGFXCapsGPU |
ngpu(long struct,
int index)
Unsafe version of
gpu. |
static boolean |
nhomogeneousDepth(long struct)
Unsafe version of
homogeneousDepth(). |
static BGFXCapsLimits |
nlimits(long struct)
Unsafe version of
limits(). |
static byte |
nnumGPUs(long struct)
Unsafe version of
numGPUs(). |
static boolean |
noriginBottomLeft(long struct)
Unsafe version of
originBottomLeft(). |
static int |
nrendererType(long struct)
Unsafe version of
rendererType(). |
static long |
nsupported(long struct)
Unsafe version of
supported(). |
byte |
numGPUs()
Returns the value of the
numGPUs field. |
static short |
nvendorId(long struct)
Unsafe version of
vendorId(). |
boolean |
originBottomLeft()
Returns the value of the
originBottomLeft field. |
int |
rendererType()
Returns the value of the
rendererType field. |
int |
sizeof() |
long |
supported()
Returns the value of the
supported field. |
short |
vendorId()
Returns the value of the
vendorId field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int RENDERERTYPE
public static final int SUPPORTED
public static final int VENDORID
public static final int DEVICEID
public static final int HOMOGENEOUSDEPTH
public static final int ORIGINBOTTOMLEFT
public static final int NUMGPUS
public static final int GPU
public static final int LIMITS
public static final int FORMATS
public BGFXCaps(java.nio.ByteBuffer container)
BGFXCaps 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 rendererType()
rendererType field.public long supported()
supported field.public short vendorId()
vendorId field.public short deviceId()
deviceId field.public boolean homogeneousDepth()
homogeneousDepth field.public boolean originBottomLeft()
originBottomLeft field.public byte numGPUs()
numGPUs field.public BGFXCapsGPU.Buffer gpu()
BGFXCapsGPU.Buffer view of the gpu field.public BGFXCapsGPU gpu(int index)
BGFXCapsGPU view of the struct at the specified index of the gpu field.public BGFXCapsLimits limits()
BGFXCapsLimits view of the limits field.public java.nio.ShortBuffer formats()
ShortBuffer view of the formats field.public short formats(int index)
formats field.public static BGFXCaps create(long address)
BGFXCaps instance for the specified memory address.@Nullable public static BGFXCaps createSafe(long address)
public static int nrendererType(long struct)
rendererType().public static long nsupported(long struct)
supported().public static short nvendorId(long struct)
vendorId().public static short ndeviceId(long struct)
deviceId().public static boolean nhomogeneousDepth(long struct)
homogeneousDepth().public static boolean noriginBottomLeft(long struct)
originBottomLeft().public static byte nnumGPUs(long struct)
numGPUs().public static BGFXCapsGPU.Buffer ngpu(long struct)
gpu().public static BGFXCapsGPU ngpu(long struct, int index)
gpu.public static BGFXCapsLimits nlimits(long struct)
limits().public static java.nio.ShortBuffer nformats(long struct)
formats().public static short nformats(long struct,
int index)
formats.Copyright LWJGL. All Rights Reserved. License terms.