Class CLDevicePCIBusInfoKHR

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class CLDevicePCIBusInfoKHR
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource

    Layout

    
     struct cl_device_pci_bus_info_khr {
         cl_uint pci_domain;
         cl_uint pci_bus;
         cl_uint pci_device;
         cl_uint pci_function;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • PCI_DOMAIN, PCI_BUS, PCI_DEVICE, PCI_FUNCTION

        The struct member offsets.
    • Constructor Detail

      • CLDevicePCIBusInfoKHR

        public CLDevicePCIBusInfoKHR​(java.nio.ByteBuffer container)
        Creates a CLDevicePCIBusInfoKHR 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
      • pci_domain

        public int pci_domain()
        Returns:
        the value of the pci_domain field.
      • pci_bus

        public int pci_bus()
        Returns:
        the value of the pci_bus field.
      • pci_device

        public int pci_device()
        Returns:
        the value of the pci_device field.
      • pci_function

        public int pci_function()
        Returns:
        the value of the pci_function field.
      • malloc

        public static CLDevicePCIBusInfoKHR malloc()
        Returns a new CLDevicePCIBusInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static CLDevicePCIBusInfoKHR calloc()
        Returns a new CLDevicePCIBusInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static CLDevicePCIBusInfoKHR create()
        Returns a new CLDevicePCIBusInfoKHR instance allocated with BufferUtils.
      • create

        public static CLDevicePCIBusInfoKHR create​(long address)
        Returns a new CLDevicePCIBusInfoKHR instance for the specified memory address.
      • createSafe

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

        public static CLDevicePCIBusInfoKHR malloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new CLDevicePCIBusInfoKHR instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • calloc

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

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

        public static CLDevicePCIBusInfoKHR.Buffer calloc​(int capacity,
                                                          org.lwjgl.system.MemoryStack stack)
        Returns a new CLDevicePCIBusInfoKHR.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
      • npci_domain

        public static int npci_domain​(long struct)
        Unsafe version of pci_domain().
      • npci_bus

        public static int npci_bus​(long struct)
        Unsafe version of pci_bus().
      • npci_device

        public static int npci_device​(long struct)
        Unsafe version of pci_device().
      • npci_function

        public static int npci_function​(long struct)
        Unsafe version of pci_function().