Class VkBufferImageCopy2

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkBufferImageCopy2>
org.lwjgl.vulkan.VkBufferImageCopy2
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
Direct Known Subclasses:
VkBufferImageCopy2KHR

public class VkBufferImageCopy2 extends org.lwjgl.system.Struct<VkBufferImageCopy2> implements org.lwjgl.system.NativeResource
Structure specifying a buffer image copy operation.
Description

This structure is functionally identical to VkBufferImageCopy, but adds sType and pNext parameters, allowing it to be more easily extended.

Valid Usage
  • bufferRowLength must be 0, or greater than or equal to the width member of imageExtent
  • bufferImageHeight must be 0, or greater than or equal to the height member of imageExtent
  • The aspectMask member of imageSubresource must only have a single bit set
  • imageExtent.width must not be 0
  • imageExtent.height must not be 0
  • imageExtent.depth must not be 0
Valid Usage (Implicit)
See Also

VkCopyBufferToImageInfo2, VkCopyImageToBufferInfo2, VkExtent3D, VkImageSubresourceLayers, VkOffset3D

Layout


 struct VkBufferImageCopy2 {
     VkStructureType sType();
     void const * pNext();
     VkDeviceSize bufferOffset();
     uint32_t bufferRowLength();
     uint32_t bufferImageHeight();
     VkImageSubresourceLayers imageSubresource();
     VkOffset3D imageOffset();
     VkExtent3D imageExtent();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • STYPE

      public static final int STYPE
      The struct member offsets.
    • PNEXT

      public static final int PNEXT
      The struct member offsets.
    • BUFFEROFFSET

      public static final int BUFFEROFFSET
      The struct member offsets.
    • BUFFERROWLENGTH

      public static final int BUFFERROWLENGTH
      The struct member offsets.
    • BUFFERIMAGEHEIGHT

      public static final int BUFFERIMAGEHEIGHT
      The struct member offsets.
    • IMAGESUBRESOURCE

      public static final int IMAGESUBRESOURCE
      The struct member offsets.
    • IMAGEOFFSET

      public static final int IMAGEOFFSET
      The struct member offsets.
    • IMAGEEXTENT

      public static final int IMAGEEXTENT
      The struct member offsets.
  • Constructor Details

    • VkBufferImageCopy2

      public VkBufferImageCopy2(ByteBuffer container)
      Creates a VkBufferImageCopy2 instance at the current position of the specified ByteBuffer container. 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 Details