Package org.lwjgl.util.ktx
Class ktxVulkanDeviceInfo
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct ktxVulkanDeviceInfo {
VkInstance instance;
VkPhysicalDevice physicalDevice;
VkDevice device;
VkQueue queue;
VkCommandBuffer cmdBuffer;
VkCommandPool cmdPool;
{@link VkAllocationCallbacks VkAllocationCallbacks} const * pAllocator;
{@link VkPhysicalDeviceMemoryProperties VkPhysicalDeviceMemoryProperties} deviceMemoryProperties;
{@link ktxVulkanFunctions ktxVulkanFunctions} vkFuncs;
}
-
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 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.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionktxVulkanDeviceInfo
(ByteBuffer container) Creates aktxVulkanDeviceInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic ktxVulkanDeviceInfo
calloc()
Returns a newktxVulkanDeviceInfo
instance allocated withmemCalloc
.static ktxVulkanDeviceInfo.Buffer
calloc
(int capacity) Returns a newktxVulkanDeviceInfo.Buffer
instance allocated withmemCalloc
.static ktxVulkanDeviceInfo.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newktxVulkanDeviceInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static ktxVulkanDeviceInfo
calloc
(MemoryStack stack) Returns a newktxVulkanDeviceInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.long
cmdBuffer
(VkCommandBuffer value) Sets the specified value to thecmdBuffer
field.long
cmdPool()
cmdPool
(long value) Sets the specified value to thecmdPool
field.static ktxVulkanDeviceInfo
create()
Returns a newktxVulkanDeviceInfo
instance allocated withBufferUtils
.static ktxVulkanDeviceInfo.Buffer
create
(int capacity) Returns a newktxVulkanDeviceInfo.Buffer
instance allocated withBufferUtils
.static ktxVulkanDeviceInfo
create
(long address) Returns a newktxVulkanDeviceInfo
instance for the specified memory address.static ktxVulkanDeviceInfo.Buffer
create
(long address, int capacity) Create aktxVulkanDeviceInfo.Buffer
instance at the specified memory.static @Nullable ktxVulkanDeviceInfo
createSafe
(long address) static @Nullable ktxVulkanDeviceInfo.Buffer
createSafe
(long address, int capacity) long
device()
Sets the specified value to thedevice
field.Copies the specifiedVkPhysicalDeviceMemoryProperties
to thedeviceMemoryProperties
field.long
instance()
instance
(VkInstance value) Sets the specified value to theinstance
field.static ktxVulkanDeviceInfo
malloc()
Returns a newktxVulkanDeviceInfo
instance allocated withmemAlloc
.static ktxVulkanDeviceInfo.Buffer
malloc
(int capacity) Returns a newktxVulkanDeviceInfo.Buffer
instance allocated withmemAlloc
.static ktxVulkanDeviceInfo.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newktxVulkanDeviceInfo.Buffer
instance allocated on the specifiedMemoryStack
.static ktxVulkanDeviceInfo
malloc
(MemoryStack stack) Returns a newktxVulkanDeviceInfo
instance allocated on the specifiedMemoryStack
.static long
ncmdBuffer
(long struct) Unsafe version ofcmdBuffer()
.static void
ncmdBuffer
(long struct, VkCommandBuffer value) Unsafe version ofcmdBuffer
.static long
ncmdPool
(long struct) Unsafe version ofcmdPool()
.static void
ncmdPool
(long struct, long value) Unsafe version ofcmdPool
.static long
ndevice
(long struct) Unsafe version ofdevice()
.static void
Unsafe version ofdevice
.ndeviceMemoryProperties
(long struct) Unsafe version ofdeviceMemoryProperties()
.static void
ndeviceMemoryProperties
(long struct, VkPhysicalDeviceMemoryProperties value) Unsafe version ofdeviceMemoryProperties
.static long
ninstance
(long struct) Unsafe version ofinstance()
.static void
ninstance
(long struct, VkInstance value) Unsafe version ofinstance
.static @Nullable VkAllocationCallbacks
npAllocator
(long struct) Unsafe version ofpAllocator()
.static void
npAllocator
(long struct, @Nullable VkAllocationCallbacks value) Unsafe version ofpAllocator
.static long
nphysicalDevice
(long struct) Unsafe version ofphysicalDevice()
.static void
nphysicalDevice
(long struct, VkPhysicalDevice value) Unsafe version ofphysicalDevice
.static long
nqueue
(long struct) Unsafe version ofqueue()
.static void
Unsafe version ofqueue
.static ktxVulkanFunctions
nvkFuncs
(long struct) Unsafe version ofvkFuncs()
.static void
nvkFuncs
(long struct, ktxVulkanFunctions value) Unsafe version ofvkFuncs
.@Nullable VkAllocationCallbacks
pAllocator
(@Nullable VkAllocationCallbacks value) Sets the address of the specifiedVkAllocationCallbacks
to thepAllocator
field.long
physicalDevice
(VkPhysicalDevice value) Sets the specified value to thephysicalDevice
field.long
queue()
Sets the specified value to thequeue
field.set
(ktxVulkanDeviceInfo src) Copies the specified struct data to this struct.set
(VkInstance instance, VkPhysicalDevice physicalDevice, VkDevice device, VkQueue queue, VkCommandBuffer cmdBuffer, long cmdPool, @Nullable VkAllocationCallbacks pAllocator, VkPhysicalDeviceMemoryProperties deviceMemoryProperties, ktxVulkanFunctions vkFuncs) Initializes this struct with the specified values.int
sizeof()
Returnssizeof(struct)
.static void
validate
(long struct) Validates pointer members that should not beNULL
.vkFuncs()
vkFuncs
(Consumer<ktxVulkanFunctions> consumer) Passes thevkFuncs
field to the specifiedConsumer
.vkFuncs
(ktxVulkanFunctions value) Copies the specifiedktxVulkanFunctions
to thevkFuncs
field.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. -
INSTANCE
public static final int INSTANCEThe struct member offsets. -
PHYSICALDEVICE
public static final int PHYSICALDEVICEThe struct member offsets. -
DEVICE
public static final int DEVICEThe struct member offsets. -
QUEUE
public static final int QUEUEThe struct member offsets. -
CMDBUFFER
public static final int CMDBUFFERThe struct member offsets. -
CMDPOOL
public static final int CMDPOOLThe struct member offsets. -
PALLOCATOR
public static final int PALLOCATORThe struct member offsets. -
DEVICEMEMORYPROPERTIES
public static final int DEVICEMEMORYPROPERTIESThe struct member offsets. -
VKFUNCS
public static final int VKFUNCSThe struct member offsets.
-
-
Constructor Details
-
ktxVulkanDeviceInfo
Creates aktxVulkanDeviceInfo
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<ktxVulkanDeviceInfo>
-
instance
public long instance()- Returns:
- the value of the
instance
field.
-
physicalDevice
public long physicalDevice()- Returns:
- the value of the
physicalDevice
field.
-
device
public long device()- Returns:
- the value of the
device
field.
-
queue
public long queue()- Returns:
- the value of the
queue
field.
-
cmdBuffer
public long cmdBuffer()- Returns:
- the value of the
cmdBuffer
field.
-
cmdPool
public long cmdPool()- Returns:
- the value of the
cmdPool
field.
-
pAllocator
- Returns:
- a
VkAllocationCallbacks
view of the struct pointed to by thepAllocator
field.
-
deviceMemoryProperties
- Returns:
- a
VkPhysicalDeviceMemoryProperties
view of thedeviceMemoryProperties
field.
-
vkFuncs
- Returns:
- a
ktxVulkanFunctions
view of thevkFuncs
field.
-
instance
Sets the specified value to theinstance
field. -
physicalDevice
Sets the specified value to thephysicalDevice
field. -
device
Sets the specified value to thedevice
field. -
queue
Sets the specified value to thequeue
field. -
cmdBuffer
Sets the specified value to thecmdBuffer
field. -
cmdPool
Sets the specified value to thecmdPool
field. -
pAllocator
Sets the address of the specifiedVkAllocationCallbacks
to thepAllocator
field. -
deviceMemoryProperties
Copies the specifiedVkPhysicalDeviceMemoryProperties
to thedeviceMemoryProperties
field. -
vkFuncs
Copies the specifiedktxVulkanFunctions
to thevkFuncs
field. -
vkFuncs
Passes thevkFuncs
field to the specifiedConsumer
. -
set
public ktxVulkanDeviceInfo set(VkInstance instance, VkPhysicalDevice physicalDevice, VkDevice device, VkQueue queue, VkCommandBuffer cmdBuffer, long cmdPool, @Nullable VkAllocationCallbacks pAllocator, VkPhysicalDeviceMemoryProperties deviceMemoryProperties, ktxVulkanFunctions vkFuncs) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newktxVulkanDeviceInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newktxVulkanDeviceInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newktxVulkanDeviceInfo
instance allocated withBufferUtils
. -
create
Returns a newktxVulkanDeviceInfo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newktxVulkanDeviceInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newktxVulkanDeviceInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newktxVulkanDeviceInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aktxVulkanDeviceInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newktxVulkanDeviceInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newktxVulkanDeviceInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newktxVulkanDeviceInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newktxVulkanDeviceInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
ninstance
public static long ninstance(long struct) Unsafe version ofinstance()
. -
nphysicalDevice
public static long nphysicalDevice(long struct) Unsafe version ofphysicalDevice()
. -
ndevice
public static long ndevice(long struct) Unsafe version ofdevice()
. -
nqueue
public static long nqueue(long struct) Unsafe version ofqueue()
. -
ncmdBuffer
public static long ncmdBuffer(long struct) Unsafe version ofcmdBuffer()
. -
ncmdPool
public static long ncmdPool(long struct) Unsafe version ofcmdPool()
. -
npAllocator
Unsafe version ofpAllocator()
. -
ndeviceMemoryProperties
Unsafe version ofdeviceMemoryProperties()
. -
nvkFuncs
Unsafe version ofvkFuncs()
. -
ninstance
Unsafe version ofinstance
. -
nphysicalDevice
Unsafe version ofphysicalDevice
. -
ndevice
Unsafe version ofdevice
. -
nqueue
Unsafe version ofqueue
. -
ncmdBuffer
Unsafe version ofcmdBuffer
. -
ncmdPool
public static void ncmdPool(long struct, long value) Unsafe version ofcmdPool
. -
npAllocator
Unsafe version ofpAllocator
. -
ndeviceMemoryProperties
Unsafe version ofdeviceMemoryProperties
. -
nvkFuncs
Unsafe version ofvkFuncs
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-