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 Deprecated 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 CLDeviceTopologyAMD.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCLDeviceTopologyAMD.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CLDeviceTopologyAMDcalloc(org.lwjgl.system.MemoryStack stack)Returns a newCLDeviceTopologyAMDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CLDeviceTopologyAMDcallocStack()Deprecated.static CLDeviceTopologyAMD.BuffercallocStack(int capacity)Deprecated.static CLDeviceTopologyAMD.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CLDeviceTopologyAMDcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 CLDeviceTopologyAMD.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCLDeviceTopologyAMD.Bufferinstance allocated on the specifiedMemoryStack.static CLDeviceTopologyAMDmalloc(org.lwjgl.system.MemoryStack stack)Returns a newCLDeviceTopologyAMDinstance allocated on the specifiedMemoryStack.static CLDeviceTopologyAMDmallocStack()Deprecated.static CLDeviceTopologyAMD.BuffermallocStack(int capacity)Deprecated.static CLDeviceTopologyAMD.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CLDeviceTopologyAMDmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()bytepcie_device()bytepcie_function()intpcie_type()java.nio.IntBufferraw_data()intraw_data(int index)intraw_type()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 the
raw.typefield.
-
raw_data
public java.nio.IntBuffer raw_data()
- Returns:
- a
IntBufferview of theraw.datafield.
-
raw_data
public int raw_data(int index)
- Returns:
- the value at the specified index of the
raw.datafield.
-
pcie_type
public int pcie_type()
- Returns:
- the value of the
pcie.typefield.
-
pcie_bus
public byte pcie_bus()
- Returns:
- the value of the
pcie.busfield.
-
pcie_device
public byte pcie_device()
- Returns:
- the value of the
pcie.devicefield.
-
pcie_function
public byte pcie_function()
- Returns:
- the value of the
pcie.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
@Deprecated public static CLDeviceTopologyAMD mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CLDeviceTopologyAMD callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CLDeviceTopologyAMD mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CLDeviceTopologyAMD callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CLDeviceTopologyAMD.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CLDeviceTopologyAMD.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static CLDeviceTopologyAMD.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CLDeviceTopologyAMD.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static CLDeviceTopologyAMD malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCLDeviceTopologyAMDinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CLDeviceTopologyAMD calloc(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
-
malloc
public static CLDeviceTopologyAMD.Buffer malloc(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
-
calloc
public static CLDeviceTopologyAMD.Buffer calloc(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().
-
-