Package org.lwjgl.bgfx
Class BGFXCapsGPU
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.bgfx.BGFXCapsGPU
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class BGFXCapsGPU extends org.lwjgl.system.Struct
GPU info.Member documentation
vendorId
– vendor PCI id. One of:PCI_ID_NONE
PCI_ID_SOFTWARE_RASTERIZER
PCI_ID_AMD
PCI_ID_INTEL
PCI_ID_NVIDIA
deviceId
– device id
Layout
struct bgfx_caps_gpu_t { uint16_t vendorId; uint16_t deviceId; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BGFXCapsGPU.Buffer
An array ofBGFXCapsGPU
structs.
-
Constructor Summary
Constructors Constructor Description BGFXCapsGPU(java.nio.ByteBuffer container)
Creates aBGFXCapsGPU
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 BGFXCapsGPU
create(long address)
Returns a newBGFXCapsGPU
instance for the specified memory address.static BGFXCapsGPU.Buffer
create(long address, int capacity)
Create aBGFXCapsGPU.Buffer
instance at the specified memory.static BGFXCapsGPU
createSafe(long address)
static BGFXCapsGPU.Buffer
createSafe(long address, int capacity)
short
deviceId()
Returns the value of thedeviceId
field.static short
ndeviceId(long struct)
Unsafe version ofdeviceId()
.static short
nvendorId(long struct)
Unsafe version ofvendorId()
.int
sizeof()
short
vendorId()
Returns the value of thevendorId
field.
-
-
-
Constructor Detail
-
BGFXCapsGPU
public BGFXCapsGPU(java.nio.ByteBuffer container)
Creates aBGFXCapsGPU
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
-
vendorId
public short vendorId()
Returns the value of thevendorId
field.
-
deviceId
public short deviceId()
Returns the value of thedeviceId
field.
-
create
public static BGFXCapsGPU create(long address)
Returns a newBGFXCapsGPU
instance for the specified memory address.
-
createSafe
@Nullable public static BGFXCapsGPU createSafe(long address)
-
create
public static BGFXCapsGPU.Buffer create(long address, int capacity)
Create aBGFXCapsGPU.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static BGFXCapsGPU.Buffer createSafe(long address, int capacity)
-
nvendorId
public static short nvendorId(long struct)
Unsafe version ofvendorId()
.
-
ndeviceId
public static short ndeviceId(long struct)
Unsafe version ofdeviceId()
.
-
-