Package org.lwjgl.opencl
Class CLDevicePCIBusInfoKHR
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
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 ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCLDevicePCIBusInfoKHR(ByteBuffer container) Creates aCLDevicePCIBusInfoKHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic CLDevicePCIBusInfoKHRcalloc()Returns a newCLDevicePCIBusInfoKHRinstance allocated withmemCalloc.static CLDevicePCIBusInfoKHR.Buffercalloc(int capacity) Returns a newCLDevicePCIBusInfoKHR.Bufferinstance allocated withmemCalloc.static CLDevicePCIBusInfoKHR.Buffercalloc(int capacity, MemoryStack stack) Returns a newCLDevicePCIBusInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CLDevicePCIBusInfoKHRcalloc(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 @Nullable CLDevicePCIBusInfoKHRcreateSafe(long address) static @Nullable 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, MemoryStack stack) Returns a newCLDevicePCIBusInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static CLDevicePCIBusInfoKHRmalloc(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()intintintintsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
PCI_DOMAIN
public static final int PCI_DOMAINThe struct member offsets. -
PCI_BUS
public static final int PCI_BUSThe struct member offsets. -
PCI_DEVICE
public static final int PCI_DEVICEThe struct member offsets. -
PCI_FUNCTION
public static final int PCI_FUNCTIONThe struct member offsets.
-
-
Constructor Details
-
CLDevicePCIBusInfoKHR
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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<CLDevicePCIBusInfoKHR>
-
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
Returns a newCLDevicePCIBusInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCLDevicePCIBusInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCLDevicePCIBusInfoKHRinstance allocated withBufferUtils. -
create
Returns a newCLDevicePCIBusInfoKHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCLDevicePCIBusInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCLDevicePCIBusInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCLDevicePCIBusInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCLDevicePCIBusInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newCLDevicePCIBusInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCLDevicePCIBusInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newCLDevicePCIBusInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newCLDevicePCIBusInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
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().
-