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;
VkAllocationCallbacks const * pAllocator;
VkPhysicalDeviceMemoryProperties deviceMemoryProperties;
ktxVulkanFunctions vkFuncs;
}-
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 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.static final intThe 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 aktxVulkanDeviceInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ktxVulkanDeviceInfocalloc()Returns a newktxVulkanDeviceInfoinstance allocated withmemCalloc.static ktxVulkanDeviceInfo.Buffercalloc(int capacity) Returns a newktxVulkanDeviceInfo.Bufferinstance allocated withmemCalloc.static ktxVulkanDeviceInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newktxVulkanDeviceInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ktxVulkanDeviceInfocalloc(MemoryStack stack) Returns a newktxVulkanDeviceInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.longcmdBuffer(VkCommandBuffer value) Sets the specified value to thecmdBufferfield.longcmdPool()cmdPool(long value) Sets the specified value to thecmdPoolfield.static ktxVulkanDeviceInfocreate()Returns a newktxVulkanDeviceInfoinstance allocated withBufferUtils.static ktxVulkanDeviceInfo.Buffercreate(int capacity) Returns a newktxVulkanDeviceInfo.Bufferinstance allocated withBufferUtils.static ktxVulkanDeviceInfocreate(long address) Returns a newktxVulkanDeviceInfoinstance for the specified memory address.static ktxVulkanDeviceInfo.Buffercreate(long address, int capacity) Create aktxVulkanDeviceInfo.Bufferinstance at the specified memory.static @Nullable ktxVulkanDeviceInfocreateSafe(long address) static @Nullable ktxVulkanDeviceInfo.BuffercreateSafe(long address, int capacity) longdevice()Sets the specified value to thedevicefield.Copies the specifiedVkPhysicalDeviceMemoryPropertiesto thedeviceMemoryPropertiesfield.longinstance()instance(VkInstance value) Sets the specified value to theinstancefield.static ktxVulkanDeviceInfomalloc()Returns a newktxVulkanDeviceInfoinstance allocated withmemAlloc.static ktxVulkanDeviceInfo.Buffermalloc(int capacity) Returns a newktxVulkanDeviceInfo.Bufferinstance allocated withmemAlloc.static ktxVulkanDeviceInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newktxVulkanDeviceInfo.Bufferinstance allocated on the specifiedMemoryStack.static ktxVulkanDeviceInfomalloc(MemoryStack stack) Returns a newktxVulkanDeviceInfoinstance allocated on the specifiedMemoryStack.static longncmdBuffer(long struct) Unsafe version ofcmdBuffer().static voidncmdBuffer(long struct, VkCommandBuffer value) Unsafe version ofcmdBuffer.static longncmdPool(long struct) Unsafe version ofcmdPool().static voidncmdPool(long struct, long value) Unsafe version ofcmdPool.static longndevice(long struct) Unsafe version ofdevice().static voidUnsafe version ofdevice.ndeviceMemoryProperties(long struct) Unsafe version ofdeviceMemoryProperties().static voidndeviceMemoryProperties(long struct, VkPhysicalDeviceMemoryProperties value) Unsafe version ofdeviceMemoryProperties.static longninstance(long struct) Unsafe version ofinstance().static voidninstance(long struct, VkInstance value) Unsafe version ofinstance.static @Nullable VkAllocationCallbacksnpAllocator(long struct) Unsafe version ofpAllocator().static voidnpAllocator(long struct, @Nullable VkAllocationCallbacks value) Unsafe version ofpAllocator.static longnphysicalDevice(long struct) Unsafe version ofphysicalDevice().static voidnphysicalDevice(long struct, VkPhysicalDevice value) Unsafe version ofphysicalDevice.static longnqueue(long struct) Unsafe version ofqueue().static voidUnsafe version ofqueue.static ktxVulkanFunctionsnvkFuncs(long struct) Unsafe version ofvkFuncs().static voidnvkFuncs(long struct, ktxVulkanFunctions value) Unsafe version ofvkFuncs.@Nullable VkAllocationCallbackspAllocator(@Nullable VkAllocationCallbacks value) Sets the address of the specifiedVkAllocationCallbacksto thepAllocatorfield.longphysicalDevice(VkPhysicalDevice value) Sets the specified value to thephysicalDevicefield.longqueue()Sets the specified value to thequeuefield.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.intsizeof()Returnssizeof(struct).static voidvalidate(long struct) Validates pointer members that should not beNULL.vkFuncs()vkFuncs(Consumer<ktxVulkanFunctions> consumer) Passes thevkFuncsfield to the specifiedConsumer.vkFuncs(ktxVulkanFunctions value) Copies the specifiedktxVulkanFunctionsto thevkFuncsfield.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. -
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 aktxVulkanDeviceInfoinstance 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<ktxVulkanDeviceInfo>
-
instance
public long instance()- Returns:
- the value of the
instancefield.
-
physicalDevice
public long physicalDevice()- Returns:
- the value of the
physicalDevicefield.
-
device
public long device()- Returns:
- the value of the
devicefield.
-
queue
public long queue()- Returns:
- the value of the
queuefield.
-
cmdBuffer
public long cmdBuffer()- Returns:
- the value of the
cmdBufferfield.
-
cmdPool
public long cmdPool()- Returns:
- the value of the
cmdPoolfield.
-
pAllocator
- Returns:
- a
VkAllocationCallbacksview of the struct pointed to by thepAllocatorfield.
-
deviceMemoryProperties
- Returns:
- a
VkPhysicalDeviceMemoryPropertiesview of thedeviceMemoryPropertiesfield.
-
vkFuncs
- Returns:
- a
ktxVulkanFunctionsview of thevkFuncsfield.
-
instance
Sets the specified value to theinstancefield. -
physicalDevice
Sets the specified value to thephysicalDevicefield. -
device
Sets the specified value to thedevicefield. -
queue
Sets the specified value to thequeuefield. -
cmdBuffer
Sets the specified value to thecmdBufferfield. -
cmdPool
Sets the specified value to thecmdPoolfield. -
pAllocator
Sets the address of the specifiedVkAllocationCallbacksto thepAllocatorfield. -
deviceMemoryProperties
Copies the specifiedVkPhysicalDeviceMemoryPropertiesto thedeviceMemoryPropertiesfield. -
vkFuncs
Copies the specifiedktxVulkanFunctionsto thevkFuncsfield. -
vkFuncs
Passes thevkFuncsfield 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 newktxVulkanDeviceInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newktxVulkanDeviceInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newktxVulkanDeviceInfoinstance allocated withBufferUtils. -
create
Returns a newktxVulkanDeviceInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newktxVulkanDeviceInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newktxVulkanDeviceInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newktxVulkanDeviceInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aktxVulkanDeviceInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newktxVulkanDeviceInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newktxVulkanDeviceInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newktxVulkanDeviceInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newktxVulkanDeviceInfo.Bufferinstance allocated on the specifiedMemoryStackand 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
-