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, NativeResource, Pointer
public class CLDeviceTopologyAMD extends Struct
The struct returned byGetDeviceInfo
withparam_name
set toDEVICE_TOPOLOGY_AMD
.Layout
union cl_device_topology_amd { struct { cl_uint type; cl_uint[5] data; } 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 and Description static class
CLDeviceTopologyAMD.Buffer
An array ofCLDeviceTopologyAMD
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and 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 and 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, MemoryStack stack)
Returns a newCLDeviceTopologyAMD.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CLDeviceTopologyAMD
callocStack(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 ornull
if the address isNULL
.static CLDeviceTopologyAMD.Buffer
create(long address, int capacity)
Create aCLDeviceTopologyAMD.Buffer
instance at the specified memory.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, MemoryStack stack)
Returns a newCLDeviceTopologyAMD.Buffer
instance allocated on the specifiedMemoryStack
.static CLDeviceTopologyAMD
mallocStack(MemoryStack stack)
Returns a newCLDeviceTopologyAMD
instance allocated on the specifiedMemoryStack
.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()
Returns thesizeof(struct)
.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
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()
Description copied from class:Struct
Returns thesizeof(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 ornull
if the address isNULL
.
-
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
-
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(MemoryStack stack)
Returns a newCLDeviceTopologyAMD
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static CLDeviceTopologyAMD callocStack(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, 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, 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
-
-