Package org.lwjgl.opencl
Class CLDevicePCIBusInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.opencl.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.NativeResourceLayout
struct cl_device_pci_bus_info_khr { cl_uint pci_domain; cl_uint pci_bus; cl_uint pci_device; cl_uint pci_function; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCLDevicePCIBusInfoKHR.BufferAn array ofCLDevicePCIBusInfoKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPCI_BUS
PCI_DEVICE
PCI_DOMAIN
PCI_FUNCTIONThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description CLDevicePCIBusInfoKHR(java.nio.ByteBuffer container)Creates aCLDevicePCIBusInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CLDevicePCIBusInfoKHRcalloc()Returns a newCLDevicePCIBusInfoKHRinstance allocated withmemCalloc.static CLDevicePCIBusInfoKHR.Buffercalloc(int capacity)Returns a newCLDevicePCIBusInfoKHR.Bufferinstance allocated withmemCalloc.static CLDevicePCIBusInfoKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCLDevicePCIBusInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CLDevicePCIBusInfoKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newCLDevicePCIBusInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CLDevicePCIBusInfoKHRcreate()Returns a newCLDevicePCIBusInfoKHRinstance allocated withBufferUtils.static CLDevicePCIBusInfoKHR.Buffercreate(int capacity)Returns a newCLDevicePCIBusInfoKHR.Bufferinstance allocated withBufferUtils.static CLDevicePCIBusInfoKHRcreate(long address)Returns a newCLDevicePCIBusInfoKHRinstance for the specified memory address.static CLDevicePCIBusInfoKHR.Buffercreate(long address, int capacity)Create aCLDevicePCIBusInfoKHR.Bufferinstance at the specified memory.static CLDevicePCIBusInfoKHRcreateSafe(long address)static CLDevicePCIBusInfoKHR.BuffercreateSafe(long address, int capacity)static CLDevicePCIBusInfoKHRmalloc()Returns a newCLDevicePCIBusInfoKHRinstance allocated withmemAlloc.static CLDevicePCIBusInfoKHR.Buffermalloc(int capacity)Returns a newCLDevicePCIBusInfoKHR.Bufferinstance allocated withmemAlloc.static CLDevicePCIBusInfoKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCLDevicePCIBusInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static CLDevicePCIBusInfoKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newCLDevicePCIBusInfoKHRinstance allocated on the specifiedMemoryStack.static intnpci_bus(long struct)Unsafe version ofpci_bus().static intnpci_device(long struct)Unsafe version ofpci_device().static intnpci_domain(long struct)Unsafe version ofpci_domain().static intnpci_function(long struct)Unsafe version ofpci_function().intpci_bus()intpci_device()intpci_domain()intpci_function()intsizeof()
-
-
-
Constructor Detail
-
CLDevicePCIBusInfoKHR
public CLDevicePCIBusInfoKHR(java.nio.ByteBuffer container)
Creates aCLDevicePCIBusInfoKHRinstance 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
-
pci_domain
public int pci_domain()
- Returns:
- the value of the
pci_domainfield.
-
pci_bus
public int pci_bus()
- Returns:
- the value of the
pci_busfield.
-
pci_device
public int pci_device()
- Returns:
- the value of the
pci_devicefield.
-
pci_function
public int pci_function()
- Returns:
- the value of the
pci_functionfield.
-
malloc
public static CLDevicePCIBusInfoKHR malloc()
Returns a newCLDevicePCIBusInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CLDevicePCIBusInfoKHR calloc()
Returns a newCLDevicePCIBusInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CLDevicePCIBusInfoKHR create()
Returns a newCLDevicePCIBusInfoKHRinstance allocated withBufferUtils.
-
create
public static CLDevicePCIBusInfoKHR create(long address)
Returns a newCLDevicePCIBusInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static CLDevicePCIBusInfoKHR createSafe(long address)
-
malloc
public static CLDevicePCIBusInfoKHR.Buffer malloc(int capacity)
Returns a newCLDevicePCIBusInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CLDevicePCIBusInfoKHR.Buffer calloc(int capacity)
Returns a newCLDevicePCIBusInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CLDevicePCIBusInfoKHR.Buffer create(int capacity)
Returns a newCLDevicePCIBusInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CLDevicePCIBusInfoKHR.Buffer create(long address, int capacity)
Create aCLDevicePCIBusInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CLDevicePCIBusInfoKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static CLDevicePCIBusInfoKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCLDevicePCIBusInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CLDevicePCIBusInfoKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newCLDevicePCIBusInfoKHRinstance allocated on the specifiedMemoryStackand 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 newCLDevicePCIBusInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static CLDevicePCIBusInfoKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCLDevicePCIBusInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
npci_domain
public static int npci_domain(long struct)
Unsafe version ofpci_domain().
-
npci_bus
public static int npci_bus(long struct)
Unsafe version ofpci_bus().
-
npci_device
public static int npci_device(long struct)
Unsafe version ofpci_device().
-
npci_function
public static int npci_function(long struct)
Unsafe version ofpci_function().
-
-