Package org.lwjgl.vulkan
Class VkImageCopy2.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<VkImageCopy2,VkImageCopy2.Buffer>
-
- org.lwjgl.vulkan.VkImageCopy2.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<VkImageCopy2>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkImageCopy2KHR.Buffer
- Enclosing class:
- VkImageCopy2
public static class VkImageCopy2.Buffer extends org.lwjgl.system.StructBuffer<VkImageCopy2,VkImageCopy2.Buffer> implements org.lwjgl.system.NativeResource
An array ofVkImageCopy2structs.
-
-
Method Summary
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newVkImageCopy2.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 byVkImageCopy2.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
-
sType
public int sType()
- Returns:
- the value of the
VkImageCopy2.sType()field.
-
pNext
public long pNext()
- Returns:
- the value of the
VkImageCopy2.pNext()field.
-
srcSubresource
public VkImageSubresourceLayers srcSubresource()
- Returns:
- a
VkImageSubresourceLayersview of theVkImageCopy2.srcSubresource()field.
-
srcOffset
public VkOffset3D srcOffset()
- Returns:
- a
VkOffset3Dview of theVkImageCopy2.srcOffset()field.
-
dstSubresource
public VkImageSubresourceLayers dstSubresource()
- Returns:
- a
VkImageSubresourceLayersview of theVkImageCopy2.dstSubresource()field.
-
dstOffset
public VkOffset3D dstOffset()
- Returns:
- a
VkOffset3Dview of theVkImageCopy2.dstOffset()field.
-
extent
public VkExtent3D extent()
- Returns:
- a
VkExtent3Dview of theVkImageCopy2.extent()field.
-
sType
public VkImageCopy2.Buffer sType(int value)
Sets the specified value to theVkImageCopy2.sType()field.
-
sType$Default
public VkImageCopy2.Buffer sType$Default()
Sets theSTRUCTURE_TYPE_IMAGE_COPY_2value to theVkImageCopy2.sType()field.
-
pNext
public VkImageCopy2.Buffer pNext(long value)
Sets the specified value to theVkImageCopy2.pNext()field.
-
srcSubresource
public VkImageCopy2.Buffer srcSubresource(VkImageSubresourceLayers value)
Copies the specifiedVkImageSubresourceLayersto theVkImageCopy2.srcSubresource()field.
-
srcSubresource
public VkImageCopy2.Buffer srcSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)
Passes theVkImageCopy2.srcSubresource()field to the specifiedConsumer.
-
srcOffset
public VkImageCopy2.Buffer srcOffset(VkOffset3D value)
Copies the specifiedVkOffset3Dto theVkImageCopy2.srcOffset()field.
-
srcOffset
public VkImageCopy2.Buffer srcOffset(java.util.function.Consumer<VkOffset3D> consumer)
Passes theVkImageCopy2.srcOffset()field to the specifiedConsumer.
-
dstSubresource
public VkImageCopy2.Buffer dstSubresource(VkImageSubresourceLayers value)
Copies the specifiedVkImageSubresourceLayersto theVkImageCopy2.dstSubresource()field.
-
dstSubresource
public VkImageCopy2.Buffer dstSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)
Passes theVkImageCopy2.dstSubresource()field to the specifiedConsumer.
-
dstOffset
public VkImageCopy2.Buffer dstOffset(VkOffset3D value)
Copies the specifiedVkOffset3Dto theVkImageCopy2.dstOffset()field.
-
dstOffset
public VkImageCopy2.Buffer dstOffset(java.util.function.Consumer<VkOffset3D> consumer)
Passes theVkImageCopy2.dstOffset()field to the specifiedConsumer.
-
extent
public VkImageCopy2.Buffer extent(VkExtent3D value)
Copies the specifiedVkExtent3Dto theVkImageCopy2.extent()field.
-
extent
public VkImageCopy2.Buffer extent(java.util.function.Consumer<VkExtent3D> consumer)
Passes theVkImageCopy2.extent()field to the specifiedConsumer.
-
-