Package org.lwjgl.bgfx
Class BGFXCaps
- All Implemented Interfaces:
Pointer
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;
{@link BGFXCapsGPU bgfx_caps_gpu_t} gpu[4];
{@link BGFXCapsLimits bgfx_caps_limits_t} limits;
uint16_t formats[BGFX_TEXTURE_FORMAT_COUNT];
}
-
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
FieldsModifier 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 member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionBGFXCaps
(ByteBuffer container) Creates aBGFXCaps
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic BGFXCaps
create
(long address) Returns a newBGFXCaps
instance for the specified memory address.static @Nullable BGFXCaps
createSafe
(long address) short
deviceId()
formats()
short
formats
(int index) gpu()
gpu
(int index) boolean
limits()
static short
ndeviceId
(long struct) Unsafe version ofdeviceId()
.static ShortBuffer
nformats
(long struct) Unsafe version offormats()
.static short
nformats
(long struct, int index) Unsafe version offormats
.static BGFXCapsGPU.Buffer
ngpu
(long struct) Unsafe version ofgpu()
.static BGFXCapsGPU
ngpu
(long struct, int index) Unsafe version ofgpu
.static boolean
nhomogeneousDepth
(long struct) Unsafe version ofhomogeneousDepth()
.static BGFXCapsLimits
nlimits
(long struct) Unsafe version oflimits()
.static byte
nnumGPUs
(long struct) Unsafe version ofnumGPUs()
.static boolean
noriginBottomLeft
(long struct) Unsafe version oforiginBottomLeft()
.static int
nrendererType
(long struct) Unsafe version ofrendererType()
.static long
nsupported
(long struct) Unsafe version ofsupported()
.byte
numGPUs()
static short
nvendorId
(long struct) Unsafe version ofvendorId()
.boolean
int
int
sizeof()
Returnssizeof(struct)
.long
short
vendorId()
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
RENDERERTYPE
public static final int RENDERERTYPEThe struct member offsets. -
SUPPORTED
public static final int SUPPORTEDThe struct member offsets. -
VENDORID
public static final int VENDORIDThe struct member offsets. -
DEVICEID
public static final int DEVICEIDThe struct member offsets. -
HOMOGENEOUSDEPTH
public static final int HOMOGENEOUSDEPTHThe struct member offsets. -
ORIGINBOTTOMLEFT
public static final int ORIGINBOTTOMLEFTThe struct member offsets. -
NUMGPUS
public static final int NUMGPUSThe struct member offsets. -
GPU
public static final int GPUThe struct member offsets. -
LIMITS
public static final int LIMITSThe struct member offsets. -
FORMATS
public static final int FORMATSThe struct member offsets.
-
-
Constructor Details
-
BGFXCaps
Creates aBGFXCaps
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)
. -
rendererType
public int rendererType()- Returns:
- the value of the
rendererType
field.
-
supported
public long supported()- Returns:
- the value of the
supported
field.
-
vendorId
public short vendorId()- Returns:
- the value of the
vendorId
field.
-
deviceId
public short deviceId()- Returns:
- the value of the
deviceId
field.
-
homogeneousDepth
public boolean homogeneousDepth()- Returns:
- the value of the
homogeneousDepth
field.
-
originBottomLeft
public boolean originBottomLeft()- Returns:
- the value of the
originBottomLeft
field.
-
numGPUs
public byte numGPUs()- Returns:
- the value of the
numGPUs
field.
-
gpu
- Returns:
- a
BGFXCapsGPU
.Buffer view of thegpu
field.
-
gpu
- Returns:
- a
BGFXCapsGPU
view of the struct at the specified index of thegpu
field.
-
limits
- Returns:
- a
BGFXCapsLimits
view of thelimits
field.
-
formats
- Returns:
- a
ShortBuffer
view of theformats
field.
-
formats
public short formats(int index) - Returns:
- the value at the specified index of the
formats
field.
-
create
Returns a newBGFXCaps
instance for the specified memory address. -
createSafe
-
nrendererType
public static int nrendererType(long struct) Unsafe version ofrendererType()
. -
nsupported
public static long nsupported(long struct) Unsafe version ofsupported()
. -
nvendorId
public static short nvendorId(long struct) Unsafe version ofvendorId()
. -
ndeviceId
public static short ndeviceId(long struct) Unsafe version ofdeviceId()
. -
nhomogeneousDepth
public static boolean nhomogeneousDepth(long struct) Unsafe version ofhomogeneousDepth()
. -
noriginBottomLeft
public static boolean noriginBottomLeft(long struct) Unsafe version oforiginBottomLeft()
. -
nnumGPUs
public static byte nnumGPUs(long struct) Unsafe version ofnumGPUs()
. -
ngpu
Unsafe version ofgpu()
. -
ngpu
Unsafe version ofgpu
. -
nlimits
Unsafe version oflimits()
. -
nformats
Unsafe version offormats()
. -
nformats
public static short nformats(long struct, int index) Unsafe version offormats
.
-