Package org.lwjgl.vulkan
Class VkBufferImageCopy2
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkBufferImageCopy2
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkBufferImageCopy2KHR
public class VkBufferImageCopy2 extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying a buffer image copy operation.Description
This structure is functionally identical to
VkBufferImageCopy, but addssTypeandpNextparameters, allowing it to be more easily extended.Valid Usage
bufferRowLengthmust be 0, or greater than or equal to thewidthmember ofimageExtentbufferImageHeightmust be 0, or greater than or equal to theheightmember ofimageExtent- The
aspectMaskmember ofimageSubresourcemust only have a single bit set
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_BUFFER_IMAGE_COPY_2pNextmust beNULLor a pointer to a valid instance ofVkCopyCommandTransformInfoQCOM- The
sTypevalue of each struct in thepNextchain must be unique imageSubresourcemust be a validVkImageSubresourceLayersstructure
See Also
VkCopyBufferToImageInfo2,VkCopyImageToBufferInfo2,VkExtent3D,VkImageSubresourceLayers,VkOffset3DLayout
struct VkBufferImageCopy2 { VkStructureTypesType(); void const *pNext(); VkDeviceSizebufferOffset(); uint32_tbufferRowLength(); uint32_tbufferImageHeight();VkImageSubresourceLayersimageSubresource();VkOffset3DimageOffset();VkExtent3DimageExtent(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkBufferImageCopy2.BufferAn array ofVkBufferImageCopy2structs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBUFFERIMAGEHEIGHT
BUFFEROFFSET
BUFFERROWLENGTH
IMAGEEXTENT
IMAGEOFFSET
IMAGESUBRESOURCE
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkBufferImageCopy2(java.nio.ByteBuffer container)Creates aVkBufferImageCopy2instance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intbufferImageHeight()seebufferRowLengthVkBufferImageCopy2bufferImageHeight(int value)Sets the specified value to thebufferImageHeight()field.longbufferOffset()the offset in bytes from the start of the buffer object where the image data is copied from or to.VkBufferImageCopy2bufferOffset(long value)Sets the specified value to thebufferOffset()field.intbufferRowLength()bufferRowLengthandbufferImageHeightspecify in texels a subregion of a larger two- or three-dimensional image in buffer memory, and control the addressing calculations.VkBufferImageCopy2bufferRowLength(int value)Sets the specified value to thebufferRowLength()field.static VkBufferImageCopy2calloc()Returns a newVkBufferImageCopy2instance allocated withmemCalloc.static VkBufferImageCopy2.Buffercalloc(int capacity)Returns a newVkBufferImageCopy2.Bufferinstance allocated withmemCalloc.static VkBufferImageCopy2.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBufferImageCopy2.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBufferImageCopy2calloc(org.lwjgl.system.MemoryStack stack)Returns a newVkBufferImageCopy2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBufferImageCopy2create()Returns a newVkBufferImageCopy2instance allocated withBufferUtils.static VkBufferImageCopy2.Buffercreate(int capacity)Returns a newVkBufferImageCopy2.Bufferinstance allocated withBufferUtils.static VkBufferImageCopy2create(long address)Returns a newVkBufferImageCopy2instance for the specified memory address.static VkBufferImageCopy2.Buffercreate(long address, int capacity)Create aVkBufferImageCopy2.Bufferinstance at the specified memory.static VkBufferImageCopy2createSafe(long address)static VkBufferImageCopy2.BuffercreateSafe(long address, int capacity)VkExtent3DimageExtent()the size in texels of the image to copy inwidth,heightanddepth.VkBufferImageCopy2imageExtent(java.util.function.Consumer<VkExtent3D> consumer)Passes theimageExtent()field to the specifiedConsumer.VkBufferImageCopy2imageExtent(VkExtent3D value)Copies the specifiedVkExtent3Dto theimageExtent()field.VkOffset3DimageOffset()selects the initialx,y,zoffsets in texels of the sub-region of the source or destination image data.VkBufferImageCopy2imageOffset(java.util.function.Consumer<VkOffset3D> consumer)Passes theimageOffset()field to the specifiedConsumer.VkBufferImageCopy2imageOffset(VkOffset3D value)Copies the specifiedVkOffset3Dto theimageOffset()field.VkImageSubresourceLayersimageSubresource()aVkImageSubresourceLayersused to specify the specific image subresources of the image used for the source or destination image data.VkBufferImageCopy2imageSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)Passes theimageSubresource()field to the specifiedConsumer.VkBufferImageCopy2imageSubresource(VkImageSubresourceLayers value)Copies the specifiedVkImageSubresourceLayersto theimageSubresource()field.static VkBufferImageCopy2malloc()Returns a newVkBufferImageCopy2instance allocated withmemAlloc.static VkBufferImageCopy2.Buffermalloc(int capacity)Returns a newVkBufferImageCopy2.Bufferinstance allocated withmemAlloc.static VkBufferImageCopy2.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBufferImageCopy2.Bufferinstance allocated on the specifiedMemoryStack.static VkBufferImageCopy2malloc(org.lwjgl.system.MemoryStack stack)Returns a newVkBufferImageCopy2instance allocated on the specifiedMemoryStack.static intnbufferImageHeight(long struct)Unsafe version ofbufferImageHeight().static voidnbufferImageHeight(long struct, int value)Unsafe version ofbufferImageHeight.static longnbufferOffset(long struct)Unsafe version ofbufferOffset().static voidnbufferOffset(long struct, long value)Unsafe version ofbufferOffset.static intnbufferRowLength(long struct)Unsafe version ofbufferRowLength().static voidnbufferRowLength(long struct, int value)Unsafe version ofbufferRowLength.static VkExtent3DnimageExtent(long struct)Unsafe version ofimageExtent().static voidnimageExtent(long struct, VkExtent3D value)Unsafe version ofimageExtent.static VkOffset3DnimageOffset(long struct)Unsafe version ofimageOffset().static voidnimageOffset(long struct, VkOffset3D value)Unsafe version ofimageOffset.static VkImageSubresourceLayersnimageSubresource(long struct)Unsafe version ofimageSubresource().static voidnimageSubresource(long struct, VkImageSubresourceLayers value)Unsafe version ofimageSubresource.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()NULLor a pointer to a structure extending this structure.VkBufferImageCopy2pNext(long value)Sets the specified value to thepNext()field.VkBufferImageCopy2pNext(VkCopyCommandTransformInfoQCOM value)Prepends the specifiedVkCopyCommandTransformInfoQCOMvalue to thepNextchain.VkBufferImageCopy2set(int sType, long pNext, long bufferOffset, int bufferRowLength, int bufferImageHeight, VkImageSubresourceLayers imageSubresource, VkOffset3D imageOffset, VkExtent3D imageExtent)Initializes this struct with the specified values.VkBufferImageCopy2set(VkBufferImageCopy2 src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkBufferImageCopy2sType(int value)Sets the specified value to thesType()field.VkBufferImageCopy2sType$Default()Sets theSTRUCTURE_TYPE_BUFFER_IMAGE_COPY_2value to thesType()field.
-
-
-
Constructor Detail
-
VkBufferImageCopy2
public VkBufferImageCopy2(java.nio.ByteBuffer container)
Creates aVkBufferImageCopy2instance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
bufferOffset
public long bufferOffset()
the offset in bytes from the start of the buffer object where the image data is copied from or to.
-
bufferRowLength
public int bufferRowLength()
bufferRowLengthandbufferImageHeightspecify in texels a subregion of a larger two- or three-dimensional image in buffer memory, and control the addressing calculations. If either of these values is zero, that aspect of the buffer memory is considered to be tightly packed according to theimageExtent.
-
bufferImageHeight
public int bufferImageHeight()
seebufferRowLength
-
imageSubresource
public VkImageSubresourceLayers imageSubresource()
aVkImageSubresourceLayersused to specify the specific image subresources of the image used for the source or destination image data.
-
imageOffset
public VkOffset3D imageOffset()
selects the initialx,y,zoffsets in texels of the sub-region of the source or destination image data.
-
imageExtent
public VkExtent3D imageExtent()
the size in texels of the image to copy inwidth,heightanddepth.
-
sType
public VkBufferImageCopy2 sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkBufferImageCopy2 sType$Default()
Sets theSTRUCTURE_TYPE_BUFFER_IMAGE_COPY_2value to thesType()field.
-
pNext
public VkBufferImageCopy2 pNext(long value)
Sets the specified value to thepNext()field.
-
pNext
public VkBufferImageCopy2 pNext(VkCopyCommandTransformInfoQCOM value)
Prepends the specifiedVkCopyCommandTransformInfoQCOMvalue to thepNextchain.
-
bufferOffset
public VkBufferImageCopy2 bufferOffset(long value)
Sets the specified value to thebufferOffset()field.
-
bufferRowLength
public VkBufferImageCopy2 bufferRowLength(int value)
Sets the specified value to thebufferRowLength()field.
-
bufferImageHeight
public VkBufferImageCopy2 bufferImageHeight(int value)
Sets the specified value to thebufferImageHeight()field.
-
imageSubresource
public VkBufferImageCopy2 imageSubresource(VkImageSubresourceLayers value)
Copies the specifiedVkImageSubresourceLayersto theimageSubresource()field.
-
imageSubresource
public VkBufferImageCopy2 imageSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)
Passes theimageSubresource()field to the specifiedConsumer.
-
imageOffset
public VkBufferImageCopy2 imageOffset(VkOffset3D value)
Copies the specifiedVkOffset3Dto theimageOffset()field.
-
imageOffset
public VkBufferImageCopy2 imageOffset(java.util.function.Consumer<VkOffset3D> consumer)
Passes theimageOffset()field to the specifiedConsumer.
-
imageExtent
public VkBufferImageCopy2 imageExtent(VkExtent3D value)
Copies the specifiedVkExtent3Dto theimageExtent()field.
-
imageExtent
public VkBufferImageCopy2 imageExtent(java.util.function.Consumer<VkExtent3D> consumer)
Passes theimageExtent()field to the specifiedConsumer.
-
set
public VkBufferImageCopy2 set(int sType, long pNext, long bufferOffset, int bufferRowLength, int bufferImageHeight, VkImageSubresourceLayers imageSubresource, VkOffset3D imageOffset, VkExtent3D imageExtent)
Initializes this struct with the specified values.
-
set
public VkBufferImageCopy2 set(VkBufferImageCopy2 src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkBufferImageCopy2 malloc()
Returns a newVkBufferImageCopy2instance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkBufferImageCopy2 calloc()
Returns a newVkBufferImageCopy2instance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkBufferImageCopy2 create()
Returns a newVkBufferImageCopy2instance allocated withBufferUtils.
-
create
public static VkBufferImageCopy2 create(long address)
Returns a newVkBufferImageCopy2instance for the specified memory address.
-
createSafe
@Nullable public static VkBufferImageCopy2 createSafe(long address)
-
malloc
public static VkBufferImageCopy2.Buffer malloc(int capacity)
Returns a newVkBufferImageCopy2.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkBufferImageCopy2.Buffer calloc(int capacity)
Returns a newVkBufferImageCopy2.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkBufferImageCopy2.Buffer create(int capacity)
Returns a newVkBufferImageCopy2.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkBufferImageCopy2.Buffer create(long address, int capacity)
Create aVkBufferImageCopy2.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkBufferImageCopy2.Buffer createSafe(long address, int capacity)
-
malloc
public static VkBufferImageCopy2 malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferImageCopy2instance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkBufferImageCopy2 calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferImageCopy2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkBufferImageCopy2.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferImageCopy2.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkBufferImageCopy2.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferImageCopy2.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
nbufferOffset
public static long nbufferOffset(long struct)
Unsafe version ofbufferOffset().
-
nbufferRowLength
public static int nbufferRowLength(long struct)
Unsafe version ofbufferRowLength().
-
nbufferImageHeight
public static int nbufferImageHeight(long struct)
Unsafe version ofbufferImageHeight().
-
nimageSubresource
public static VkImageSubresourceLayers nimageSubresource(long struct)
Unsafe version ofimageSubresource().
-
nimageOffset
public static VkOffset3D nimageOffset(long struct)
Unsafe version ofimageOffset().
-
nimageExtent
public static VkExtent3D nimageExtent(long struct)
Unsafe version ofimageExtent().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nbufferOffset
public static void nbufferOffset(long struct, long value)Unsafe version ofbufferOffset.
-
nbufferRowLength
public static void nbufferRowLength(long struct, int value)Unsafe version ofbufferRowLength.
-
nbufferImageHeight
public static void nbufferImageHeight(long struct, int value)Unsafe version ofbufferImageHeight.
-
nimageSubresource
public static void nimageSubresource(long struct, VkImageSubresourceLayers value)Unsafe version ofimageSubresource.
-
nimageOffset
public static void nimageOffset(long struct, VkOffset3D value)Unsafe version ofimageOffset.
-
nimageExtent
public static void nimageExtent(long struct, VkExtent3D value)Unsafe version ofimageExtent.
-
-