Package org.lwjgl.opencl
Class CLDeviceTopologyAMD
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.opencl.CLDeviceTopologyAMD
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class CLDeviceTopologyAMD extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
The struct returned byGetDeviceInfo
withparam_name
set toDEVICE_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 Modifier and Type Class Description static class
CLDeviceTopologyAMD.Buffer
An array ofCLDeviceTopologyAMD
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
PCIE
PCIE_BUS
PCIE_DEVICE
PCIE_FUNCTION
PCIE_TYPE
RAW
RAW_DATA
RAW_TYPEThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description CLDeviceTopologyAMD(java.nio.ByteBuffer container)
Creates aCLDeviceTopologyAMD
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CLDeviceTopologyAMD
calloc()
Returns a newCLDeviceTopologyAMD
instance allocated withmemCalloc
.static CLDeviceTopologyAMD.Buffer
calloc(int capacity)
Returns a newCLDeviceTopologyAMD.Buffer
instance allocated withmemCalloc
.static CLDeviceTopologyAMD
callocStack()
Returns a newCLDeviceTopologyAMD
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CLDeviceTopologyAMD.Buffer
callocStack(int capacity)
Returns a newCLDeviceTopologyAMD.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CLDeviceTopologyAMD.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCLDeviceTopologyAMD.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CLDeviceTopologyAMD
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCLDeviceTopologyAMD
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.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
mallocStack()
Returns a newCLDeviceTopologyAMD
instance allocated on the thread-localMemoryStack
.static CLDeviceTopologyAMD.Buffer
mallocStack(int capacity)
Returns a newCLDeviceTopologyAMD.Buffer
instance allocated on the thread-localMemoryStack
.static CLDeviceTopologyAMD.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCLDeviceTopologyAMD.Buffer
instance allocated on the specifiedMemoryStack
.static CLDeviceTopologyAMD
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCLDeviceTopologyAMD
instance allocated on the specifiedMemoryStack
.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 java.nio.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()
Returns the value of thepcie.bus
field.byte
pcie_device()
Returns the value of thepcie.device
field.byte
pcie_function()
Returns the value of thepcie.function
field.int
pcie_type()
Returns the value of thepcie.type
field.java.nio.IntBuffer
raw_data()
Returns aIntBuffer
view of theraw.data
field.int
raw_data(int index)
Returns the value at the specified index of theraw.data
field.int
raw_type()
Returns the value of theraw.type
field.int
sizeof()
-
-
-
Constructor Detail
-
CLDeviceTopologyAMD
public CLDeviceTopologyAMD(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
raw_type
public int raw_type()
Returns the value of theraw.type
field.
-
raw_data
public java.nio.IntBuffer raw_data()
Returns aIntBuffer
view of theraw.data
field.
-
raw_data
public int raw_data(int index)
Returns the value at the specified index of theraw.data
field.
-
pcie_type
public int pcie_type()
Returns the value of thepcie.type
field.
-
pcie_bus
public byte pcie_bus()
Returns the value of thepcie.bus
field.
-
pcie_device
public byte pcie_device()
Returns the value of thepcie.device
field.
-
pcie_function
public byte pcie_function()
Returns the value of thepcie.function
field.
-
malloc
public static CLDeviceTopologyAMD malloc()
Returns a newCLDeviceTopologyAMD
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static CLDeviceTopologyAMD calloc()
Returns a newCLDeviceTopologyAMD
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static CLDeviceTopologyAMD create()
Returns a newCLDeviceTopologyAMD
instance allocated withBufferUtils
.
-
create
public static CLDeviceTopologyAMD create(long address)
Returns a newCLDeviceTopologyAMD
instance for the specified memory address.
-
createSafe
@Nullable public static CLDeviceTopologyAMD createSafe(long address)
-
malloc
public static CLDeviceTopologyAMD.Buffer malloc(int capacity)
Returns a newCLDeviceTopologyAMD.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static CLDeviceTopologyAMD.Buffer calloc(int capacity)
Returns a newCLDeviceTopologyAMD.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static CLDeviceTopologyAMD.Buffer create(int capacity)
Returns a newCLDeviceTopologyAMD.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static CLDeviceTopologyAMD.Buffer create(long address, int capacity)
Create aCLDeviceTopologyAMD.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static CLDeviceTopologyAMD.Buffer createSafe(long address, int capacity)
-
mallocStack
public static CLDeviceTopologyAMD mallocStack()
Returns a newCLDeviceTopologyAMD
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static CLDeviceTopologyAMD callocStack()
Returns a newCLDeviceTopologyAMD
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static CLDeviceTopologyAMD mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCLDeviceTopologyAMD
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static CLDeviceTopologyAMD callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCLDeviceTopologyAMD
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static CLDeviceTopologyAMD.Buffer mallocStack(int capacity)
Returns a newCLDeviceTopologyAMD.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static CLDeviceTopologyAMD.Buffer callocStack(int capacity)
Returns a newCLDeviceTopologyAMD.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static CLDeviceTopologyAMD.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCLDeviceTopologyAMD.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static CLDeviceTopologyAMD.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCLDeviceTopologyAMD.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nraw_type
public static int nraw_type(long struct)
Unsafe version ofraw_type()
.
-
nraw_data
public static java.nio.IntBuffer nraw_data(long struct)
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()
.
-
-