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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
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()formats()shortformats(int index) gpu()gpu(int index) booleanlimits()static 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()static shortnvendorId(long struct) Unsafe version ofvendorId().booleanintintsizeof()Returnssizeof(struct).longshortvendorId()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 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()Description copied from class:StructReturnssizeof(struct). -
rendererType
public int rendererType()- Returns:
- the value of the
rendererTypefield.
-
supported
public long supported()- Returns:
- the value of the
supportedfield.
-
vendorId
public short vendorId()- Returns:
- the value of the
vendorIdfield.
-
deviceId
public short deviceId()- Returns:
- the value of the
deviceIdfield.
-
homogeneousDepth
public boolean homogeneousDepth()- Returns:
- the value of the
homogeneousDepthfield.
-
originBottomLeft
public boolean originBottomLeft()- Returns:
- the value of the
originBottomLeftfield.
-
numGPUs
public byte numGPUs()- Returns:
- the value of the
numGPUsfield.
-
gpu
- Returns:
- a
BGFXCapsGPU.Buffer view of thegpufield.
-
gpu
- Returns:
- a
BGFXCapsGPUview of the struct at the specified index of thegpufield.
-
limits
- Returns:
- a
BGFXCapsLimitsview of thelimitsfield.
-
formats
- Returns:
- a
ShortBufferview of theformatsfield.
-
formats
public short formats(int index) - Returns:
- the value at the specified index of the
formatsfield.
-
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.
-