Class CLDevicePCIBusInfoKHR

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CLDevicePCIBusInfoKHR>
org.lwjgl.opencl.CLDevicePCIBusInfoKHR
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class CLDevicePCIBusInfoKHR extends org.lwjgl.system.Struct<CLDevicePCIBusInfoKHR> 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 Details

    • SIZEOF

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

      public static final int ALIGNOF
      The struct alignment in bytes.
    • PCI_DOMAIN

      public static final int PCI_DOMAIN
      The struct member offsets.
    • PCI_BUS

      public static final int PCI_BUS
      The struct member offsets.
    • PCI_DEVICE

      public static final int PCI_DEVICE
      The struct member offsets.
    • PCI_FUNCTION

      public static final int PCI_FUNCTION
      The struct member offsets.
  • Constructor Details

    • CLDevicePCIBusInfoKHR

      public CLDevicePCIBusInfoKHR(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 Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<CLDevicePCIBusInfoKHR>
    • 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

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

      public static CLDevicePCIBusInfoKHR.Buffer malloc(int capacity)
      Returns a new CLDevicePCIBusInfoKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static CLDevicePCIBusInfoKHR.Buffer calloc(int capacity)
      Returns a new CLDevicePCIBusInfoKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static CLDevicePCIBusInfoKHR.Buffer create(int capacity)
      Returns a new CLDevicePCIBusInfoKHR.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static CLDevicePCIBusInfoKHR.Buffer create(long address, int capacity)
      Create a CLDevicePCIBusInfoKHR.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable CLDevicePCIBusInfoKHR.Buffer createSafe(long address, int capacity)
      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:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • 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:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • 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().