Class VkBufferImageCopy

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkBufferImageCopy>
org.lwjgl.vulkan.VkBufferImageCopy
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VkBufferImageCopy extends org.lwjgl.system.Struct<VkBufferImageCopy> implements org.lwjgl.system.NativeResource
Structure specifying a buffer image copy operation.
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

VkExtent3D, VkImageSubresourceLayers, VkOffset3D, CmdCopyBufferToImage, CmdCopyImageToBuffer

Layout


 struct VkBufferImageCopy {
     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.
    • 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

    • VkBufferImageCopy

      public VkBufferImageCopy(ByteBuffer container)
      Creates a VkBufferImageCopy 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