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 byGetDeviceInfowithparam_nameset 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 classCLDeviceTopologyAMD.BufferAn array ofCLDeviceTopologyAMDstructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe 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 aCLDeviceTopologyAMDinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static CLDeviceTopologyAMDcalloc()Returns a newCLDeviceTopologyAMDinstance allocated withmemCalloc.static CLDeviceTopologyAMD.Buffercalloc(int capacity)Returns a newCLDeviceTopologyAMD.Bufferinstance allocated withmemCalloc.static CLDeviceTopologyAMDcallocStack()Returns a newCLDeviceTopologyAMDinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static CLDeviceTopologyAMD.BuffercallocStack(int capacity)Returns a newCLDeviceTopologyAMD.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static CLDeviceTopologyAMD.BuffercallocStack(int capacity, MemoryStack stack)Returns a newCLDeviceTopologyAMD.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CLDeviceTopologyAMDcallocStack(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 ornullif the address isNULL.static CLDeviceTopologyAMD.Buffercreate(long address, int capacity)Create aCLDeviceTopologyAMD.Bufferinstance at the specified memory.static CLDeviceTopologyAMDmalloc()Returns a newCLDeviceTopologyAMDinstance allocated withmemAlloc.static CLDeviceTopologyAMD.Buffermalloc(int capacity)Returns a newCLDeviceTopologyAMD.Bufferinstance allocated withmemAlloc.static CLDeviceTopologyAMDmallocStack()Returns a newCLDeviceTopologyAMDinstance allocated on the thread-localMemoryStack.static CLDeviceTopologyAMD.BuffermallocStack(int capacity)Returns a newCLDeviceTopologyAMD.Bufferinstance allocated on the thread-localMemoryStack.static CLDeviceTopologyAMD.BuffermallocStack(int capacity, MemoryStack stack)Returns a newCLDeviceTopologyAMD.Bufferinstance allocated on the specifiedMemoryStack.static CLDeviceTopologyAMDmallocStack(MemoryStack stack)Returns a newCLDeviceTopologyAMDinstance allocated on the specifiedMemoryStack.bytepcie_bus()Returns the value of thepcie_busfield.bytepcie_device()Returns the value of thepcie_devicefield.bytepcie_function()Returns the value of thepcie_functionfield.intpcie_type()Returns the value of thepcie_typefield.java.nio.IntBufferraw_data()Returns aIntBufferview of theraw_datafield.intraw_data(int index)Returns the value at the specified index of theraw_datafield.intraw_type()Returns the value of theraw_typefield.intsizeof()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 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 Detail
-
sizeof
public int sizeof()
Description copied from class:StructReturns thesizeof(struct).
-
raw_type
public int raw_type()
Returns the value of theraw_typefield.
-
raw_data
public java.nio.IntBuffer raw_data()
Returns aIntBufferview of theraw_datafield.
-
raw_data
public int raw_data(int index)
Returns the value at the specified index of theraw_datafield.
-
pcie_type
public int pcie_type()
Returns the value of thepcie_typefield.
-
pcie_bus
public byte pcie_bus()
Returns the value of thepcie_busfield.
-
pcie_device
public byte pcie_device()
Returns the value of thepcie_devicefield.
-
pcie_function
public byte pcie_function()
Returns the value of thepcie_functionfield.
-
malloc
public static CLDeviceTopologyAMD malloc()
Returns a newCLDeviceTopologyAMDinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CLDeviceTopologyAMD calloc()
Returns a newCLDeviceTopologyAMDinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CLDeviceTopologyAMD create()
Returns a newCLDeviceTopologyAMDinstance allocated withBufferUtils.
-
create
public static CLDeviceTopologyAMD create(long address)
Returns a newCLDeviceTopologyAMDinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static CLDeviceTopologyAMD.Buffer malloc(int capacity)
Returns a newCLDeviceTopologyAMD.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CLDeviceTopologyAMD.Buffer calloc(int capacity)
Returns a newCLDeviceTopologyAMD.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CLDeviceTopologyAMD.Buffer create(int capacity)
Returns a newCLDeviceTopologyAMD.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CLDeviceTopologyAMD.Buffer create(long address, int capacity)
Create aCLDeviceTopologyAMD.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static CLDeviceTopologyAMD mallocStack()
Returns a newCLDeviceTopologyAMDinstance allocated on the thread-localMemoryStack.
-
callocStack
public static CLDeviceTopologyAMD callocStack()
Returns a newCLDeviceTopologyAMDinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static CLDeviceTopologyAMD mallocStack(MemoryStack stack)
Returns a newCLDeviceTopologyAMDinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static CLDeviceTopologyAMD callocStack(MemoryStack stack)
Returns a newCLDeviceTopologyAMDinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static CLDeviceTopologyAMD.Buffer callocStack(int capacity)
Returns a newCLDeviceTopologyAMD.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static CLDeviceTopologyAMD.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newCLDeviceTopologyAMD.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-