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.Struct
Renderer capabilities.Member documentation
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
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]; }
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
DEVICEID
FORMATS
GPU
HOMOGENEOUSDEPTH
LIMITS
NUMGPUS
ORIGINBOTTOMLEFT
RENDERERTYPEThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
SUPPORTED
VENDORIDThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description BGFXCaps(java.nio.ByteBuffer container)
Creates aBGFXCaps
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BGFXCaps
create(long address)
Returns a newBGFXCaps
instance for the specified memory address.static BGFXCaps
createSafe(long address)
short
deviceId()
Returns the value of thedeviceId
field.java.nio.ShortBuffer
formats()
Returns aShortBuffer
view of theformats
field.short
formats(int index)
Returns the value at the specified index of theformats
field.BGFXCapsGPU.Buffer
gpu()
Returns aBGFXCapsGPU
.Buffer view of thegpu
field.BGFXCapsGPU
gpu(int index)
Returns aBGFXCapsGPU
view of the struct at the specified index of thegpu
field.boolean
homogeneousDepth()
Returns the value of thehomogeneousDepth
field.BGFXCapsLimits
limits()
Returns aBGFXCapsLimits
view of thelimits
field.static short
ndeviceId(long struct)
Unsafe version ofdeviceId()
.static java.nio.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()
Returns the value of thenumGPUs
field.static short
nvendorId(long struct)
Unsafe version ofvendorId()
.boolean
originBottomLeft()
Returns the value of theoriginBottomLeft
field.int
rendererType()
Returns the value of therendererType
field.int
sizeof()
long
supported()
Returns the value of thesupported
field.short
vendorId()
Returns the value of thevendorId
field.
-
-
-
Constructor Detail
-
BGFXCaps
public BGFXCaps(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
rendererType
public int rendererType()
Returns the value of therendererType
field.
-
supported
public long supported()
Returns the value of thesupported
field.
-
vendorId
public short vendorId()
Returns the value of thevendorId
field.
-
deviceId
public short deviceId()
Returns the value of thedeviceId
field.
-
homogeneousDepth
public boolean homogeneousDepth()
Returns the value of thehomogeneousDepth
field.
-
originBottomLeft
public boolean originBottomLeft()
Returns the value of theoriginBottomLeft
field.
-
numGPUs
public byte numGPUs()
Returns the value of thenumGPUs
field.
-
gpu
public BGFXCapsGPU.Buffer gpu()
Returns aBGFXCapsGPU
.Buffer view of thegpu
field.
-
gpu
public BGFXCapsGPU gpu(int index)
Returns aBGFXCapsGPU
view of the struct at the specified index of thegpu
field.
-
limits
public BGFXCapsLimits limits()
Returns aBGFXCapsLimits
view of thelimits
field.
-
formats
public java.nio.ShortBuffer formats()
Returns aShortBuffer
view of theformats
field.
-
formats
public short formats(int index)
Returns the value at the specified index of theformats
field.
-
create
public static BGFXCaps create(long address)
Returns a newBGFXCaps
instance 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
.
-
-