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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The 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 aCLDevicePCIBusInfoKHR
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic CLDevicePCIBusInfoKHR
calloc()
Returns a newCLDevicePCIBusInfoKHR
instance allocated withmemCalloc
.static CLDevicePCIBusInfoKHR.Buffer
calloc
(int capacity) Returns a newCLDevicePCIBusInfoKHR.Buffer
instance allocated withmemCalloc
.static CLDevicePCIBusInfoKHR.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newCLDevicePCIBusInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CLDevicePCIBusInfoKHR
calloc
(MemoryStack stack) Returns a newCLDevicePCIBusInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CLDevicePCIBusInfoKHR
create()
Returns a newCLDevicePCIBusInfoKHR
instance allocated withBufferUtils
.static CLDevicePCIBusInfoKHR.Buffer
create
(int capacity) Returns a newCLDevicePCIBusInfoKHR.Buffer
instance allocated withBufferUtils
.static CLDevicePCIBusInfoKHR
create
(long address) Returns a newCLDevicePCIBusInfoKHR
instance for the specified memory address.static CLDevicePCIBusInfoKHR.Buffer
create
(long address, int capacity) Create aCLDevicePCIBusInfoKHR.Buffer
instance at the specified memory.static @Nullable CLDevicePCIBusInfoKHR
createSafe
(long address) static @Nullable CLDevicePCIBusInfoKHR.Buffer
createSafe
(long address, int capacity) static CLDevicePCIBusInfoKHR
malloc()
Returns a newCLDevicePCIBusInfoKHR
instance allocated withmemAlloc
.static CLDevicePCIBusInfoKHR.Buffer
malloc
(int capacity) Returns a newCLDevicePCIBusInfoKHR.Buffer
instance allocated withmemAlloc
.static CLDevicePCIBusInfoKHR.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newCLDevicePCIBusInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.static CLDevicePCIBusInfoKHR
malloc
(MemoryStack stack) Returns a newCLDevicePCIBusInfoKHR
instance allocated on the specifiedMemoryStack
.static int
npci_bus
(long struct) Unsafe version ofpci_bus()
.static int
npci_device
(long struct) Unsafe version ofpci_device()
.static int
npci_domain
(long struct) Unsafe version ofpci_domain()
.static int
npci_function
(long struct) Unsafe version ofpci_function()
.int
pci_bus()
int
int
int
int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aCLDevicePCIBusInfoKHR
instance at the current position of the specifiedByteBuffer
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()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<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
Returns a newCLDevicePCIBusInfoKHR
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newCLDevicePCIBusInfoKHR
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newCLDevicePCIBusInfoKHR
instance allocated withBufferUtils
. -
create
Returns a newCLDevicePCIBusInfoKHR
instance for the specified memory address. -
createSafe
-
malloc
Returns a newCLDevicePCIBusInfoKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newCLDevicePCIBusInfoKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newCLDevicePCIBusInfoKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aCLDevicePCIBusInfoKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newCLDevicePCIBusInfoKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newCLDevicePCIBusInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newCLDevicePCIBusInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newCLDevicePCIBusInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and 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()
.
-