Package org.lwjgl.vulkan
Class VkImageCopy.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<VkImageCopy,VkImageCopy.Buffer>
-
- org.lwjgl.vulkan.VkImageCopy.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<VkImageCopy>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- VkImageCopy
public static class VkImageCopy.Buffer extends org.lwjgl.system.StructBuffer<VkImageCopy,VkImageCopy.Buffer> implements org.lwjgl.system.NativeResource
An array ofVkImageCopystructs.
-
-
Method Summary
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newVkImageCopy.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 byVkImageCopy.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 Detail
-
srcSubresource
public VkImageSubresourceLayers srcSubresource()
- Returns:
- a
VkImageSubresourceLayersview of theVkImageCopy.srcSubresource()field.
-
srcOffset
public VkOffset3D srcOffset()
- Returns:
- a
VkOffset3Dview of theVkImageCopy.srcOffset()field.
-
dstSubresource
public VkImageSubresourceLayers dstSubresource()
- Returns:
- a
VkImageSubresourceLayersview of theVkImageCopy.dstSubresource()field.
-
dstOffset
public VkOffset3D dstOffset()
- Returns:
- a
VkOffset3Dview of theVkImageCopy.dstOffset()field.
-
extent
public VkExtent3D extent()
- Returns:
- a
VkExtent3Dview of theVkImageCopy.extent()field.
-
srcSubresource
public VkImageCopy.Buffer srcSubresource(VkImageSubresourceLayers value)
Copies the specifiedVkImageSubresourceLayersto theVkImageCopy.srcSubresource()field.
-
srcSubresource
public VkImageCopy.Buffer srcSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)
Passes theVkImageCopy.srcSubresource()field to the specifiedConsumer.
-
srcOffset
public VkImageCopy.Buffer srcOffset(VkOffset3D value)
Copies the specifiedVkOffset3Dto theVkImageCopy.srcOffset()field.
-
srcOffset
public VkImageCopy.Buffer srcOffset(java.util.function.Consumer<VkOffset3D> consumer)
Passes theVkImageCopy.srcOffset()field to the specifiedConsumer.
-
dstSubresource
public VkImageCopy.Buffer dstSubresource(VkImageSubresourceLayers value)
Copies the specifiedVkImageSubresourceLayersto theVkImageCopy.dstSubresource()field.
-
dstSubresource
public VkImageCopy.Buffer dstSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)
Passes theVkImageCopy.dstSubresource()field to the specifiedConsumer.
-
dstOffset
public VkImageCopy.Buffer dstOffset(VkOffset3D value)
Copies the specifiedVkOffset3Dto theVkImageCopy.dstOffset()field.
-
dstOffset
public VkImageCopy.Buffer dstOffset(java.util.function.Consumer<VkOffset3D> consumer)
Passes theVkImageCopy.dstOffset()field to the specifiedConsumer.
-
extent
public VkImageCopy.Buffer extent(VkExtent3D value)
Copies the specifiedVkExtent3Dto theVkImageCopy.extent()field.
-
extent
public VkImageCopy.Buffer extent(java.util.function.Consumer<VkExtent3D> consumer)
Passes theVkImageCopy.extent()field to the specifiedConsumer.
-
-