Class 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 by GetDeviceInfo with param_name set to DEVICE_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;
     }
    • Field Detail

      • SIZEOF

        public static final int SIZEOF
        The struct size in bytes.
    • Constructor Detail

      • CLDeviceTopologyAMD

        public CLDeviceTopologyAMD(java.nio.ByteBuffer container)
        Creates a CLDeviceTopologyAMD instance at the current position of the specified ByteBuffer 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 class org.lwjgl.system.Struct
      • raw_type

        public int raw_type()
        Returns the value of the raw.type field.
      • raw_data

        public java.nio.IntBuffer raw_data()
        Returns a IntBuffer view of the raw.data field.
      • raw_data

        public int raw_data(int index)
        Returns the value at the specified index of the raw.data field.
      • pcie_type

        public int pcie_type()
        Returns the value of the pcie.type field.
      • pcie_bus

        public byte pcie_bus()
        Returns the value of the pcie.bus field.
      • pcie_device

        public byte pcie_device()
        Returns the value of the pcie.device field.
      • pcie_function

        public byte pcie_function()
        Returns the value of the pcie.function field.
      • createSafe

        @Nullable
        public static CLDeviceTopologyAMD createSafe(long address)
        Like create, but returns null if address is NULL.
      • mallocStack

        public static CLDeviceTopologyAMD mallocStack(org.lwjgl.system.MemoryStack stack)
        Returns a new CLDeviceTopologyAMD instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static CLDeviceTopologyAMD callocStack(org.lwjgl.system.MemoryStack stack)
        Returns a new CLDeviceTopologyAMD instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • mallocStack

        public static CLDeviceTopologyAMD.Buffer mallocStack(int capacity,
                                                             org.lwjgl.system.MemoryStack stack)
        Returns a new CLDeviceTopologyAMD.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • callocStack

        public static CLDeviceTopologyAMD.Buffer callocStack(int capacity,
                                                             org.lwjgl.system.MemoryStack stack)
        Returns a new CLDeviceTopologyAMD.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity