wgpun_QueueWriteTexture function

  1. @Native<Void Function(Uint64, Uint64, Pointer<Uint8>, Uint64, Uint32, Uint32, Uint32, Uint32, Uint32, Uint32, Uint32, Uint32, Uint32, Uint32)>(ffi.Uint64, ffi.Uint64, ffi.Pointer<ffi.Uint8>, ffi.Uint64, ffi.Uint32, ffi.Uint32, ffi.Uint32, ffi.Uint32, ffi.Uint32, ffi.Uint32, ffi.Uint32, ffi.Uint32, ffi.Uint32, ffi.Uint32)>()
void wgpun_QueueWriteTexture(
  1. int queue,
  2. int texture,
  3. Pointer<Uint8> data,
  4. int data_size,
  5. int bytes_per_row,
  6. int width,
  7. int height,
  8. int depth_or_array_layers,
  9. int mip_level,
  10. int origin_x,
  11. int origin_y,
  12. int origin_z,
  13. int aspect,
  14. int rows_per_image,
)

Implementation

@ffi.Native<
  ffi.Void Function(
    ffi.Uint64,
    ffi.Uint64,
    ffi.Pointer<ffi.Uint8>,
    ffi.Uint64,
    ffi.Uint32,
    ffi.Uint32,
    ffi.Uint32,
    ffi.Uint32,
    ffi.Uint32,
    ffi.Uint32,
    ffi.Uint32,
    ffi.Uint32,
    ffi.Uint32,
    ffi.Uint32,
  )
>()
external void wgpun_QueueWriteTexture(
  int queue,
  int texture,
  ffi.Pointer<ffi.Uint8> data,
  int data_size,
  int bytes_per_row,
  int width,
  int height,
  int depth_or_array_layers,
  int mip_level,
  int origin_x,
  int origin_y,
  int origin_z,
  int aspect,
  int rows_per_image,
);