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.StructGPU info.Layout
struct bgfx_caps_gpu_t { uint16_tvendorId(); uint16_tdeviceId(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBGFXCapsGPU.BufferAn array ofBGFXCapsGPUstructs.
-
Constructor Summary
Constructors Constructor Description BGFXCapsGPU(java.nio.ByteBuffer container)Creates aBGFXCapsGPUinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BGFXCapsGPUcreate(long address)Returns a newBGFXCapsGPUinstance for the specified memory address.static BGFXCapsGPU.Buffercreate(long address, int capacity)Create aBGFXCapsGPU.Bufferinstance at the specified memory.static BGFXCapsGPUcreateSafe(long address)static BGFXCapsGPU.BuffercreateSafe(long address, int capacity)shortdeviceId()device idstatic shortndeviceId(long struct)Unsafe version ofdeviceId().static shortnvendorId(long struct)Unsafe version ofvendorId().intsizeof()shortvendorId()vendor PCI id.
-
-
-
Constructor Detail
-
BGFXCapsGPU
public BGFXCapsGPU(java.nio.ByteBuffer container)
Creates aBGFXCapsGPUinstance 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
-
vendorId
public short vendorId()
-
deviceId
public short deviceId()
device id
-
create
public static BGFXCapsGPU create(long address)
Returns a newBGFXCapsGPUinstance 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.Bufferinstance 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().
-
-