Package org.lwjgl.opencl
Class CLDeviceTopologyAMD
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
The struct returned by
GetDeviceInfo
with param_name
set to DEVICE_TOPOLOGY_AMD
.
Layout
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 classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionCLDeviceTopologyAMD
(ByteBuffer container) Creates aCLDeviceTopologyAMD
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic CLDeviceTopologyAMD
calloc()
Returns a newCLDeviceTopologyAMD
instance allocated withmemCalloc
.static CLDeviceTopologyAMD.Buffer
calloc
(int capacity) Returns a newCLDeviceTopologyAMD.Buffer
instance allocated withmemCalloc
.static CLDeviceTopologyAMD.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newCLDeviceTopologyAMD.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CLDeviceTopologyAMD
calloc
(MemoryStack stack) Returns a newCLDeviceTopologyAMD
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CLDeviceTopologyAMD
Deprecated.static CLDeviceTopologyAMD.Buffer
callocStack
(int capacity) Deprecated.static CLDeviceTopologyAMD.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static CLDeviceTopologyAMD
callocStack
(MemoryStack stack) Deprecated.static CLDeviceTopologyAMD
create()
Returns a newCLDeviceTopologyAMD
instance allocated withBufferUtils
.static CLDeviceTopologyAMD.Buffer
create
(int capacity) Returns a newCLDeviceTopologyAMD.Buffer
instance allocated withBufferUtils
.static CLDeviceTopologyAMD
create
(long address) Returns a newCLDeviceTopologyAMD
instance for the specified memory address.static CLDeviceTopologyAMD.Buffer
create
(long address, int capacity) Create aCLDeviceTopologyAMD.Buffer
instance at the specified memory.static CLDeviceTopologyAMD
createSafe
(long address) static CLDeviceTopologyAMD.Buffer
createSafe
(long address, int capacity) static CLDeviceTopologyAMD
malloc()
Returns a newCLDeviceTopologyAMD
instance allocated withmemAlloc
.static CLDeviceTopologyAMD.Buffer
malloc
(int capacity) Returns a newCLDeviceTopologyAMD.Buffer
instance allocated withmemAlloc
.static CLDeviceTopologyAMD.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newCLDeviceTopologyAMD.Buffer
instance allocated on the specifiedMemoryStack
.static CLDeviceTopologyAMD
malloc
(MemoryStack stack) Returns a newCLDeviceTopologyAMD
instance allocated on the specifiedMemoryStack
.static CLDeviceTopologyAMD
Deprecated.static CLDeviceTopologyAMD.Buffer
mallocStack
(int capacity) Deprecated.static CLDeviceTopologyAMD.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static CLDeviceTopologyAMD
mallocStack
(MemoryStack stack) Deprecated.static byte
npcie_bus
(long struct) Unsafe version ofpcie_bus()
.static byte
npcie_device
(long struct) Unsafe version ofpcie_device()
.static byte
npcie_function
(long struct) Unsafe version ofpcie_function()
.static int
npcie_type
(long struct) Unsafe version ofpcie_type()
.static IntBuffer
nraw_data
(long struct) Unsafe version ofraw_data()
.static int
nraw_data
(long struct, int index) Unsafe version ofraw_data
.static int
nraw_type
(long struct) Unsafe version ofraw_type()
.byte
pcie_bus()
byte
byte
int
raw_data()
int
raw_data
(int index) int
raw_type()
int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aCLDeviceTopologyAMD
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<CLDeviceTopologyAMD>
-
raw_type
public int raw_type()- Returns:
- the value of the
raw.type
field.
-
raw_data
- Returns:
- a
IntBuffer
view of theraw.data
field.
-
raw_data
public int raw_data(int index) - Returns:
- the value at the specified index of the
raw.data
field.
-
pcie_type
public int pcie_type()- Returns:
- the value of the
pcie.type
field.
-
pcie_bus
public byte pcie_bus()- Returns:
- the value of the
pcie.bus
field.
-
pcie_device
public byte pcie_device()- Returns:
- the value of the
pcie.device
field.
-
pcie_function
public byte pcie_function()- Returns:
- the value of the
pcie.function
field.
-
malloc
Returns a newCLDeviceTopologyAMD
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newCLDeviceTopologyAMD
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newCLDeviceTopologyAMD
instance allocated withBufferUtils
. -
create
Returns a newCLDeviceTopologyAMD
instance for the specified memory address. -
createSafe
-
malloc
Returns a newCLDeviceTopologyAMD.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newCLDeviceTopologyAMD.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newCLDeviceTopologyAMD.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aCLDeviceTopologyAMD.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newCLDeviceTopologyAMD
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newCLDeviceTopologyAMD
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newCLDeviceTopologyAMD.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newCLDeviceTopologyAMD.Buffer
instance allocated on the specifiedMemoryStack
and 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()
.
-