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>,NativeResource,Pointer
- Enclosing class:
ktxVulkanDeviceInfo
public static class ktxVulkanDeviceInfo.Buffer
extends StructBuffer<ktxVulkanDeviceInfo,ktxVulkanDeviceInfo.Buffer>
implements NativeResource
An array of
ktxVulkanDeviceInfo structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
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(VkCommandBuffer value) Sets the specified value to thecmdBufferfield.longcmdPool()cmdPool(long value) Sets the specified value to thecmdPoolfield.longdevice()Sets the specified value to thedevicefield.Copies the specifiedVkPhysicalDeviceMemoryPropertiesto thedeviceMemoryPropertiesfield.longinstance()instance(VkInstance value) Sets the specified value to theinstancefield.@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.vkFuncs()vkFuncs(Consumer<ktxVulkanFunctions> consumer) Passes thevkFuncsfield to the specifiedConsumer.vkFuncs(ktxVulkanFunctions value) Copies the specifiedktxVulkanFunctionsto thevkFuncsfield.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
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.
-