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.NativeResourceThe struct returned byGetDeviceInfowithparam_nameset 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 classCLDeviceTopologyAMD.BufferAn array ofCLDeviceTopologyAMDstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPCIE
PCIE_BUS
PCIE_DEVICE
PCIE_FUNCTION
PCIE_TYPE
RAW
RAW_DATA
RAW_TYPEThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor 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 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, org.lwjgl.system.MemoryStack stack)Returns a newCLDeviceTopologyAMD.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CLDeviceTopologyAMDcallocStack(org.lwjgl.system.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.static CLDeviceTopologyAMD.Buffercreate(long address, int capacity)Create aCLDeviceTopologyAMD.Bufferinstance at the specified memory.static CLDeviceTopologyAMDcreateSafe(long address)static CLDeviceTopologyAMD.BuffercreateSafe(long address, int capacity)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, org.lwjgl.system.MemoryStack stack)Returns a newCLDeviceTopologyAMD.Bufferinstance allocated on the specifiedMemoryStack.static CLDeviceTopologyAMDmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newCLDeviceTopologyAMDinstance allocated on the specifiedMemoryStack.static bytenpcie_bus(long struct)Unsafe version ofpcie_bus().static bytenpcie_device(long struct)Unsafe version ofpcie_device().static bytenpcie_function(long struct)Unsafe version ofpcie_function().static intnpcie_type(long struct)Unsafe version ofpcie_type().static java.nio.IntBuffernraw_data(long struct)Unsafe version ofraw_data().static intnraw_data(long struct, int index)Unsafe version ofraw_data.static intnraw_type(long struct)Unsafe version ofraw_type().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()
-
-
-
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()
- Specified by:
sizeofin classorg.lwjgl.system.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.
-
createSafe
@Nullable public static CLDeviceTopologyAMD createSafe(long address)
-
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
-
createSafe
@Nullable public static CLDeviceTopologyAMD.Buffer createSafe(long address, int 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(org.lwjgl.system.MemoryStack stack)
Returns a newCLDeviceTopologyAMDinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static CLDeviceTopologyAMD callocStack(org.lwjgl.system.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, org.lwjgl.system.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, org.lwjgl.system.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
-
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().
-
-