Package org.lwjgl.util.ktx
Class ktxVulkanDeviceInfo.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<ktxVulkanDeviceInfo.Buffer>
org.lwjgl.system.StructBuffer<ktxVulkanDeviceInfo,ktxVulkanDeviceInfo.Buffer>
org.lwjgl.util.ktx.ktxVulkanDeviceInfo.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<ktxVulkanDeviceInfo>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
ktxVulkanDeviceInfo
public static class ktxVulkanDeviceInfo.Buffer
extends org.lwjgl.system.StructBuffer<ktxVulkanDeviceInfo,ktxVulkanDeviceInfo.Buffer>
implements org.lwjgl.system.NativeResource
An array of
ktxVulkanDeviceInfo structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newktxVulkanDeviceInfo.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionlongcmdBuffer(org.lwjgl.vulkan.VkCommandBuffer value) Sets the specified value to thektxVulkanDeviceInfo.cmdBuffer()field.longcmdPool()cmdPool(long value) Sets the specified value to thektxVulkanDeviceInfo.cmdPool()field.longdevice()device(org.lwjgl.vulkan.VkDevice value) Sets the specified value to thektxVulkanDeviceInfo.device()field.org.lwjgl.vulkan.VkPhysicalDeviceMemoryPropertiesdeviceMemoryProperties(org.lwjgl.vulkan.VkPhysicalDeviceMemoryProperties value) Copies the specifiedVkPhysicalDeviceMemoryPropertiesto thektxVulkanDeviceInfo.deviceMemoryProperties()field.longinstance()instance(org.lwjgl.vulkan.VkInstance value) Sets the specified value to thektxVulkanDeviceInfo.instance()field.@Nullable org.lwjgl.vulkan.VkAllocationCallbackspAllocator(@Nullable org.lwjgl.vulkan.VkAllocationCallbacks value) Sets the address of the specifiedVkAllocationCallbacksto thektxVulkanDeviceInfo.pAllocator()field.longphysicalDevice(org.lwjgl.vulkan.VkPhysicalDevice value) Sets the specified value to thektxVulkanDeviceInfo.physicalDevice()field.longqueue()queue(org.lwjgl.vulkan.VkQueue value) Sets the specified value to thektxVulkanDeviceInfo.queue()field.vkFuncs()vkFuncs(Consumer<ktxVulkanFunctions> consumer) Passes thektxVulkanDeviceInfo.vkFuncs()field to the specifiedConsumer.vkFuncs(ktxVulkanFunctions value) Copies the specifiedktxVulkanFunctionsto thektxVulkanDeviceInfo.vkFuncs()field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newktxVulkanDeviceInfo.Bufferinstance backed by the specified container.Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by
ktxVulkanDeviceInfo.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Details
-
instance
public long instance()- Returns:
- the value of the
ktxVulkanDeviceInfo.instance()field.
-
physicalDevice
public long physicalDevice()- Returns:
- the value of the
ktxVulkanDeviceInfo.physicalDevice()field.
-
device
public long device()- Returns:
- the value of the
ktxVulkanDeviceInfo.device()field.
-
queue
public long queue()- Returns:
- the value of the
ktxVulkanDeviceInfo.queue()field.
-
cmdBuffer
public long cmdBuffer()- Returns:
- the value of the
ktxVulkanDeviceInfo.cmdBuffer()field.
-
cmdPool
public long cmdPool()- Returns:
- the value of the
ktxVulkanDeviceInfo.cmdPool()field.
-
pAllocator
public @Nullable org.lwjgl.vulkan.VkAllocationCallbacks pAllocator()- Returns:
- a
VkAllocationCallbacksview of the struct pointed to by thektxVulkanDeviceInfo.pAllocator()field.
-
deviceMemoryProperties
public org.lwjgl.vulkan.VkPhysicalDeviceMemoryProperties deviceMemoryProperties()- Returns:
- a
VkPhysicalDeviceMemoryPropertiesview of thektxVulkanDeviceInfo.deviceMemoryProperties()field.
-
vkFuncs
- Returns:
- a
ktxVulkanFunctionsview of thektxVulkanDeviceInfo.vkFuncs()field.
-
instance
Sets the specified value to thektxVulkanDeviceInfo.instance()field. -
physicalDevice
Sets the specified value to thektxVulkanDeviceInfo.physicalDevice()field. -
device
Sets the specified value to thektxVulkanDeviceInfo.device()field. -
queue
Sets the specified value to thektxVulkanDeviceInfo.queue()field. -
cmdBuffer
Sets the specified value to thektxVulkanDeviceInfo.cmdBuffer()field. -
cmdPool
Sets the specified value to thektxVulkanDeviceInfo.cmdPool()field. -
pAllocator
public ktxVulkanDeviceInfo.Buffer pAllocator(@Nullable org.lwjgl.vulkan.VkAllocationCallbacks value) Sets the address of the specifiedVkAllocationCallbacksto thektxVulkanDeviceInfo.pAllocator()field. -
deviceMemoryProperties
public ktxVulkanDeviceInfo.Buffer deviceMemoryProperties(org.lwjgl.vulkan.VkPhysicalDeviceMemoryProperties value) Copies the specifiedVkPhysicalDeviceMemoryPropertiesto thektxVulkanDeviceInfo.deviceMemoryProperties()field. -
vkFuncs
Copies the specifiedktxVulkanFunctionsto thektxVulkanDeviceInfo.vkFuncs()field. -
vkFuncs
Passes thektxVulkanDeviceInfo.vkFuncs()field to the specifiedConsumer.
-