public class CLDeviceTopologyAMD
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
GetDeviceInfo with param_name set to DEVICE_TOPOLOGY_AMD.
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;
}| Modifier and Type | Class and Description |
|---|---|
static class |
CLDeviceTopologyAMD.Buffer
An array of
CLDeviceTopologyAMD structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PCIE
The struct member offsets.
|
static int |
PCIE_BUS
The struct member offsets.
|
static int |
PCIE_DEVICE
The struct member offsets.
|
static int |
PCIE_FUNCTION
The struct member offsets.
|
static int |
PCIE_TYPE
The struct member offsets.
|
static int |
RAW
The struct member offsets.
|
static int |
RAW_DATA
The struct member offsets.
|
static int |
RAW_TYPE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
CLDeviceTopologyAMD(java.nio.ByteBuffer container)
Creates a
CLDeviceTopologyAMD instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static CLDeviceTopologyAMD |
calloc()
Returns a new
CLDeviceTopologyAMD instance allocated with memCalloc. |
static CLDeviceTopologyAMD.Buffer |
calloc(int capacity)
Returns a new
CLDeviceTopologyAMD.Buffer instance allocated with memCalloc. |
static CLDeviceTopologyAMD |
callocStack()
Returns a new
CLDeviceTopologyAMD instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CLDeviceTopologyAMD.Buffer |
callocStack(int capacity)
Returns a new
CLDeviceTopologyAMD.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CLDeviceTopologyAMD.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CLDeviceTopologyAMD.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CLDeviceTopologyAMD |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CLDeviceTopologyAMD instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CLDeviceTopologyAMD |
create()
Returns a new
CLDeviceTopologyAMD instance allocated with BufferUtils. |
static CLDeviceTopologyAMD.Buffer |
create(int capacity)
Returns a new
CLDeviceTopologyAMD.Buffer instance allocated with BufferUtils. |
static CLDeviceTopologyAMD |
create(long address)
Returns a new
CLDeviceTopologyAMD instance for the specified memory address. |
static CLDeviceTopologyAMD.Buffer |
create(long address,
int capacity)
Create a
CLDeviceTopologyAMD.Buffer instance at the specified memory. |
static CLDeviceTopologyAMD |
createSafe(long address)
|
static CLDeviceTopologyAMD.Buffer |
createSafe(long address,
int capacity)
|
static CLDeviceTopologyAMD |
malloc()
Returns a new
CLDeviceTopologyAMD instance allocated with memAlloc. |
static CLDeviceTopologyAMD.Buffer |
malloc(int capacity)
Returns a new
CLDeviceTopologyAMD.Buffer instance allocated with memAlloc. |
static CLDeviceTopologyAMD |
mallocStack()
Returns a new
CLDeviceTopologyAMD instance allocated on the thread-local MemoryStack. |
static CLDeviceTopologyAMD.Buffer |
mallocStack(int capacity)
Returns a new
CLDeviceTopologyAMD.Buffer instance allocated on the thread-local MemoryStack. |
static CLDeviceTopologyAMD.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CLDeviceTopologyAMD.Buffer instance allocated on the specified MemoryStack. |
static CLDeviceTopologyAMD |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CLDeviceTopologyAMD instance allocated on the specified MemoryStack. |
static byte |
npcie_bus(long struct)
Unsafe version of
pcie_bus(). |
static byte |
npcie_device(long struct)
Unsafe version of
pcie_device(). |
static byte |
npcie_function(long struct)
Unsafe version of
pcie_function(). |
static int |
npcie_type(long struct)
Unsafe version of
pcie_type(). |
static java.nio.IntBuffer |
nraw_data(long struct)
Unsafe version of
raw_data(). |
static int |
nraw_data(long struct,
int index)
Unsafe version of
raw_data. |
static int |
nraw_type(long struct)
Unsafe version of
raw_type(). |
byte |
pcie_bus()
Returns the value of the
pcie.bus field. |
byte |
pcie_device()
Returns the value of the
pcie.device field. |
byte |
pcie_function()
Returns the value of the
pcie.function field. |
int |
pcie_type()
Returns the value of the
pcie.type field. |
java.nio.IntBuffer |
raw_data()
Returns a
IntBuffer view of the raw.data field. |
int |
raw_data(int index)
Returns the value at the specified index of the
raw.data field. |
int |
raw_type()
Returns the value of the
raw.type field. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int RAW
public static final int RAW_TYPE
public static final int RAW_DATA
public static final int PCIE
public static final int PCIE_TYPE
public static final int PCIE_BUS
public static final int PCIE_DEVICE
public static final int PCIE_FUNCTION
public CLDeviceTopologyAMD(java.nio.ByteBuffer container)
CLDeviceTopologyAMD instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int raw_type()
raw.type field.public java.nio.IntBuffer raw_data()
IntBuffer view of the raw.data field.public int raw_data(int index)
raw.data field.public int pcie_type()
pcie.type field.public byte pcie_bus()
pcie.bus field.public byte pcie_device()
pcie.device field.public byte pcie_function()
pcie.function field.public static CLDeviceTopologyAMD malloc()
CLDeviceTopologyAMD instance allocated with memAlloc. The instance must be explicitly freed.public static CLDeviceTopologyAMD calloc()
CLDeviceTopologyAMD instance allocated with memCalloc. The instance must be explicitly freed.public static CLDeviceTopologyAMD create()
CLDeviceTopologyAMD instance allocated with BufferUtils.public static CLDeviceTopologyAMD create(long address)
CLDeviceTopologyAMD instance for the specified memory address.@Nullable public static CLDeviceTopologyAMD createSafe(long address)
public static CLDeviceTopologyAMD.Buffer malloc(int capacity)
CLDeviceTopologyAMD.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CLDeviceTopologyAMD.Buffer calloc(int capacity)
CLDeviceTopologyAMD.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CLDeviceTopologyAMD.Buffer create(int capacity)
CLDeviceTopologyAMD.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static CLDeviceTopologyAMD.Buffer create(long address, int capacity)
CLDeviceTopologyAMD.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CLDeviceTopologyAMD.Buffer createSafe(long address, int capacity)
public static CLDeviceTopologyAMD mallocStack()
CLDeviceTopologyAMD instance allocated on the thread-local MemoryStack.public static CLDeviceTopologyAMD callocStack()
CLDeviceTopologyAMD instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static CLDeviceTopologyAMD mallocStack(org.lwjgl.system.MemoryStack stack)
CLDeviceTopologyAMD instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static CLDeviceTopologyAMD callocStack(org.lwjgl.system.MemoryStack stack)
CLDeviceTopologyAMD instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static CLDeviceTopologyAMD.Buffer mallocStack(int capacity)
CLDeviceTopologyAMD.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static CLDeviceTopologyAMD.Buffer callocStack(int capacity)
CLDeviceTopologyAMD.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static CLDeviceTopologyAMD.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CLDeviceTopologyAMD.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CLDeviceTopologyAMD.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CLDeviceTopologyAMD.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nraw_type(long struct)
raw_type().public static java.nio.IntBuffer nraw_data(long struct)
raw_data().public static int nraw_data(long struct,
int index)
raw_data.public static int npcie_type(long struct)
pcie_type().public static byte npcie_bus(long struct)
pcie_bus().public static byte npcie_device(long struct)
pcie_device().public static byte npcie_function(long struct)
pcie_function().Copyright LWJGL. All Rights Reserved. License terms.