Package org.lwjgl.bgfx
Class BGFXCaps
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.bgfx.BGFXCaps
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class BGFXCaps extends org.lwjgl.system.StructRenderer capabilities.Layout
struct bgfx_caps_t { bgfx_renderer_type_trendererType(); uint64_tsupported(); uint16_tvendorId(); uint16_tdeviceId(); boolhomogeneousDepth(); booloriginBottomLeft(); uint8_tnumGPUs();bgfx_caps_gpu_tgpu()[4];bgfx_caps_limits_tlimits(); uint16_tformats()[BGFX_TEXTURE_FORMAT_COUNT]; }
-
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDEVICEID
FORMATS
GPU
HOMOGENEOUSDEPTH
LIMITS
NUMGPUS
ORIGINBOTTOMLEFT
RENDERERTYPEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSUPPORTED
VENDORIDThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description BGFXCaps(java.nio.ByteBuffer container)Creates aBGFXCapsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BGFXCapscreate(long address)Returns a newBGFXCapsinstance for the specified memory address.static BGFXCapscreateSafe(long address)shortdeviceId()selected GPU device idjava.nio.ShortBufferformats()supported texture formatsshortformats(int index)supported texture formatsBGFXCapsGPU.Buffergpu()enumerated GPUsBGFXCapsGPUgpu(int index)enumerated GPUsbooleanhomogeneousDepth()true when NDC depth is in [-1, 1] range, otherwise its [0, 1]BGFXCapsLimitslimits()renderer runtime limitsstatic shortndeviceId(long struct)Unsafe version ofdeviceId().static java.nio.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().booleanoriginBottomLeft()true when NDC origin is at bottom leftintrendererType()renderer backend type.intsizeof()longsupported()supported functionality.shortvendorId()selected GPU vendor PCI id.
-
-
-
Constructor Detail
-
BGFXCaps
public BGFXCaps(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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_MICROSOFT
-
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
public BGFXCapsGPU.Buffer gpu() public BGFXCapsGPU gpu(int index)
enumerated GPUs
-
limits
public BGFXCapsLimits limits()
renderer runtime limits
-
formats
public java.nio.ShortBuffer formats() public short formats(int index)
supported texture formats
-
create
public static BGFXCaps create(long address)
Returns a newBGFXCapsinstance for the specified memory address.
-
createSafe
@Nullable public static BGFXCaps createSafe(long address)
-
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
public static BGFXCapsGPU.Buffer ngpu(long struct)
Unsafe version ofgpu().
-
ngpu
public static BGFXCapsGPU ngpu(long struct, int index)
Unsafe version ofgpu.
-
nlimits
public static BGFXCapsLimits nlimits(long struct)
Unsafe version oflimits().
-
nformats
public static java.nio.ShortBuffer nformats(long struct)
Unsafe version offormats().
-
nformats
public static short nformats(long struct, int index)Unsafe version offormats.
-
-