Package org.lwjgl.opencl
Class CLDeviceTopologyAMD
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
union cl_device_topology_amd {
struct {
cl_uint type;
cl_uint data[5];
} raw;
struct {
cl_uint type;
char[17];
cl_char bus;
cl_char device;
cl_char function;
} pcie;
}-
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 member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCLDeviceTopologyAMD(ByteBuffer container) Creates aCLDeviceTopologyAMDinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic CLDeviceTopologyAMDcalloc()Returns a newCLDeviceTopologyAMDinstance allocated withmemCalloc.static CLDeviceTopologyAMD.Buffercalloc(int capacity) Returns a newCLDeviceTopologyAMD.Bufferinstance allocated withmemCalloc.static CLDeviceTopologyAMD.Buffercalloc(int capacity, MemoryStack stack) Returns a newCLDeviceTopologyAMD.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CLDeviceTopologyAMDcalloc(MemoryStack stack) Returns a newCLDeviceTopologyAMDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CLDeviceTopologyAMDcreate()Returns a newCLDeviceTopologyAMDinstance allocated withBufferUtils.static CLDeviceTopologyAMD.Buffercreate(int capacity) Returns a newCLDeviceTopologyAMD.Bufferinstance allocated withBufferUtils.static CLDeviceTopologyAMDcreate(long address) Returns a newCLDeviceTopologyAMDinstance for the specified memory address.static CLDeviceTopologyAMD.Buffercreate(long address, int capacity) Create aCLDeviceTopologyAMD.Bufferinstance at the specified memory.static @Nullable CLDeviceTopologyAMDcreateSafe(long address) static @Nullable CLDeviceTopologyAMD.BuffercreateSafe(long address, int capacity) static CLDeviceTopologyAMDmalloc()Returns a newCLDeviceTopologyAMDinstance allocated withmemAlloc.static CLDeviceTopologyAMD.Buffermalloc(int capacity) Returns a newCLDeviceTopologyAMD.Bufferinstance allocated withmemAlloc.static CLDeviceTopologyAMD.Buffermalloc(int capacity, MemoryStack stack) Returns a newCLDeviceTopologyAMD.Bufferinstance allocated on the specifiedMemoryStack.static CLDeviceTopologyAMDmalloc(MemoryStack stack) Returns a newCLDeviceTopologyAMDinstance allocated on the specifiedMemoryStack.static bytenpcie_bus(long struct) Unsafe version ofpcie_bus().static bytenpcie_device(long struct) Unsafe version ofpcie_device().static bytenpcie_function(long struct) Unsafe version ofpcie_function().static intnpcie_type(long struct) Unsafe version ofpcie_type().static IntBuffernraw_data(long struct) Unsafe version ofraw_data().static intnraw_data(long struct, int index) Unsafe version ofraw_data.static intnraw_type(long struct) Unsafe version ofraw_type().bytepcie_bus()bytebyteintraw_data()intraw_data(int index) intraw_type()intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
RAW
public static final int RAWThe struct member offsets. -
RAW_TYPE
public static final int RAW_TYPEThe struct member offsets. -
RAW_DATA
public static final int RAW_DATAThe struct member offsets. -
PCIE
public static final int PCIEThe struct member offsets. -
PCIE_TYPE
public static final int PCIE_TYPEThe struct member offsets. -
PCIE_BUS
public static final int PCIE_BUSThe struct member offsets. -
PCIE_DEVICE
public static final int PCIE_DEVICEThe struct member offsets. -
PCIE_FUNCTION
public static final int PCIE_FUNCTIONThe struct member offsets.
-
-
Constructor Details
-
CLDeviceTopologyAMD
Creates aCLDeviceTopologyAMDinstance 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<CLDeviceTopologyAMD>
-
raw_type
public int raw_type()- Returns:
- the value of the
raw.typefield.
-
raw_data
- Returns:
- a
IntBufferview of theraw.datafield.
-
raw_data
public int raw_data(int index) - Returns:
- the value at the specified index of the
raw.datafield.
-
pcie_type
public int pcie_type()- Returns:
- the value of the
pcie.typefield.
-
pcie_bus
public byte pcie_bus()- Returns:
- the value of the
pcie.busfield.
-
pcie_device
public byte pcie_device()- Returns:
- the value of the
pcie.devicefield.
-
pcie_function
public byte pcie_function()- Returns:
- the value of the
pcie.functionfield.
-
malloc
Returns a newCLDeviceTopologyAMDinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCLDeviceTopologyAMDinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCLDeviceTopologyAMDinstance allocated withBufferUtils. -
create
Returns a newCLDeviceTopologyAMDinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCLDeviceTopologyAMD.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCLDeviceTopologyAMD.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCLDeviceTopologyAMD.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCLDeviceTopologyAMD.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newCLDeviceTopologyAMDinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCLDeviceTopologyAMDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newCLDeviceTopologyAMD.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newCLDeviceTopologyAMD.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nraw_type
public static int nraw_type(long struct) Unsafe version ofraw_type(). -
nraw_data
Unsafe version ofraw_data(). -
nraw_data
public static int nraw_data(long struct, int index) Unsafe version ofraw_data. -
npcie_type
public static int npcie_type(long struct) Unsafe version ofpcie_type(). -
npcie_bus
public static byte npcie_bus(long struct) Unsafe version ofpcie_bus(). -
npcie_device
public static byte npcie_device(long struct) Unsafe version ofpcie_device(). -
npcie_function
public static byte npcie_function(long struct) Unsafe version ofpcie_function().
-