Record Class SDL_GPUTextureTransferInfo

java.lang.Object
java.lang.Record
club.doki7.sdl3.datatype.SDL_GPUTextureTransferInfo
All Implemented Interfaces:
IPointer, ISDL_GPUTextureTransferInfo

@ValueBasedCandidate @UnsafeConstructor public record SDL_GPUTextureTransferInfo(@NotNull MemorySegment segment) extends Record implements ISDL_GPUTextureTransferInfo

A structure specifying parameters related to transferring data to or from a texture.

Since: This struct is available since SDL 3.2.0.

See also:

  • SDL_UploadToGPUTexture
  • SDL_DownloadFromGPUTexture

Structure

typedef struct SDL_GPUTextureTransferInfo {
    SDL_GPUTransferBuffer* transfer_buffer;
    Uint32 offset;
    Uint32 pixels_per_row;
    Uint32 rows_per_layer;
} SDL_GPUTextureTransferInfo;

Contracts

The property segment() should always be not-null (segment != NULL && !segment.equals(MemorySegment.NULL)), and properly aligned to LAYOUT.byteAlignment() bytes. To represent null pointer, you may use a Java null instead. See the documentation of IPointer.segment() for more details.

The constructor of this class is marked as UnsafeConstructor, because it does not perform any runtime check. The constructor can be useful for automatic code generators.

  • Field Details

    • LAYOUT

      public static final StructLayout LAYOUT
    • BYTES

      public static final long BYTES
    • PATH$transfer_buffer

      public static final MemoryLayout.PathElement PATH$transfer_buffer
    • PATH$offset

      public static final MemoryLayout.PathElement PATH$offset
    • PATH$pixels_per_row

      public static final MemoryLayout.PathElement PATH$pixels_per_row
    • PATH$rows_per_layer

      public static final MemoryLayout.PathElement PATH$rows_per_layer
    • LAYOUT$transfer_buffer

      public static final AddressLayout LAYOUT$transfer_buffer
    • LAYOUT$offset

      public static final ValueLayout.OfInt LAYOUT$offset
    • LAYOUT$pixels_per_row

      public static final ValueLayout.OfInt LAYOUT$pixels_per_row
    • LAYOUT$rows_per_layer

      public static final ValueLayout.OfInt LAYOUT$rows_per_layer
    • SIZE$transfer_buffer

      public static final long SIZE$transfer_buffer
    • SIZE$offset

      public static final long SIZE$offset
    • SIZE$pixels_per_row

      public static final long SIZE$pixels_per_row
    • SIZE$rows_per_layer

      public static final long SIZE$rows_per_layer
    • OFFSET$transfer_buffer

      public static final long OFFSET$transfer_buffer
    • OFFSET$offset

      public static final long OFFSET$offset
    • OFFSET$pixels_per_row

      public static final long OFFSET$pixels_per_row
    • OFFSET$rows_per_layer

      public static final long OFFSET$rows_per_layer
  • Constructor Details

    • SDL_GPUTextureTransferInfo

      public SDL_GPUTextureTransferInfo(@NotNull @NotNull MemorySegment segment)
      Creates an instance of a SDL_GPUTextureTransferInfo record class.
      Parameters:
      segment - the value for the segment record component
  • Method Details