Package org.lwjgl.bgfx
Class BGFXCapsGPU
- All Implemented Interfaces:
Pointer
struct bgfx_caps_gpu_t {
uint16_t vendorId;
uint16_t deviceId;
}-
Nested Class Summary
Nested ClassesNested 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 size in bytes.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
ConstructorsConstructorDescriptionBGFXCapsGPU(ByteBuffer container) Creates aBGFXCapsGPUinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 @Nullable BGFXCapsGPUcreateSafe(long address) static @Nullable BGFXCapsGPU.BuffercreateSafe(long address, int capacity) shortdeviceId()static shortndeviceId(long struct) Unsafe version ofdeviceId().static shortnvendorId(long struct) Unsafe version ofvendorId().intsizeof()Returnssizeof(struct).shortvendorId()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. -
VENDORID
public static final int VENDORIDThe struct member offsets. -
DEVICEID
public static final int DEVICEIDThe struct member offsets.
-
-
Constructor Details
-
BGFXCapsGPU
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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<BGFXCapsGPU>
-
vendorId
public short vendorId()- Returns:
- the value of the
vendorIdfield.
-
deviceId
public short deviceId()- Returns:
- the value of the
deviceIdfield.
-
create
Returns a newBGFXCapsGPUinstance for the specified memory address. -
createSafe
-
create
Create aBGFXCapsGPU.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
nvendorId
public static short nvendorId(long struct) Unsafe version ofvendorId(). -
ndeviceId
public static short ndeviceId(long struct) Unsafe version ofdeviceId().
-