Package org.lwjgl.bgfx
Class BGFXCaps
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<BGFXCaps>
org.lwjgl.bgfx.BGFXCaps
- All Implemented Interfaces:
org.lwjgl.system.Pointer
Renderer capabilities.
Layout
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];
}-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe 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 aBGFXCapsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic BGFXCapscreate(long address) Returns a newBGFXCapsinstance for the specified memory address.static @Nullable BGFXCapscreateSafe(long address) shortdeviceId()selected GPU device idformats()supported texture formatsshortformats(int index) supported texture formatsgpu()enumerated GPUsgpu(int index) enumerated GPUsbooleantrue when NDC depth is in [-1, 1] range, otherwise its [0, 1]limits()renderer runtime limitsstatic shortndeviceId(long struct) Unsafe version ofdeviceId().static ShortBuffernformats(long struct) Unsafe version offormats().static shortnformats(long struct, int index) Unsafe version offormats.static BGFXCapsGPU.Bufferngpu(long struct) Unsafe version ofgpu().static BGFXCapsGPUngpu(long struct, int index) Unsafe version ofgpu.static booleannhomogeneousDepth(long struct) Unsafe version ofhomogeneousDepth().static BGFXCapsLimitsnlimits(long struct) Unsafe version oflimits().static bytennumGPUs(long struct) Unsafe version ofnumGPUs().static booleannoriginBottomLeft(long struct) Unsafe version oforiginBottomLeft().static intnrendererType(long struct) Unsafe version ofrendererType().static longnsupported(long struct) Unsafe version ofsupported().bytenumGPUs()number of enumerated GPUsstatic shortnvendorId(long struct) Unsafe version ofvendorId().booleantrue when NDC origin is at bottom leftintrenderer backend type.intsizeof()longsupported functionality.shortvendorId()selected GPU vendor PCI id.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods 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 aBGFXCapsinstance at the current position of the specifiedByteBuffercontainer. 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<BGFXCaps>
-
rendererType
public int rendererType() -
supported
public long supported()supported functionality. One or more of: -
vendorId
public short vendorId()selected GPU vendor PCI id. One of:PCI_ID_NONEPCI_ID_SOFTWARE_RASTERIZERPCI_ID_AMDPCI_ID_APPLEPCI_ID_INTELPCI_ID_NVIDIAPCI_ID_MICROSOFTPCI_ID_ARM -
deviceId
public short deviceId()selected GPU device id -
homogeneousDepth
public boolean homogeneousDepth()true when NDC depth is in [-1, 1] range, otherwise its [0, 1] -
originBottomLeft
public boolean originBottomLeft()true when NDC origin is at bottom left -
numGPUs
public byte numGPUs()number of enumerated GPUs -
gpu
enumerated GPUs -
gpu
enumerated GPUs -
limits
renderer runtime limits -
formats
supported texture formats -
formats
public short formats(int index) supported texture formats -
create
Returns a newBGFXCapsinstance 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.
-