wgpun_CommandEncoderCopyTextureToBuffer function

  1. @Native<Uint8 Function(Uint64, Uint64, Uint64, Uint32, Uint32, Uint32, Uint32, Uint32, Uint32, Uint32, Uint32, Uint32)>(ffi.Uint64, ffi.Uint64, ffi.Uint64, ffi.Uint32, ffi.Uint32, ffi.Uint32, ffi.Uint32, ffi.Uint32, ffi.Uint32, ffi.Uint32, ffi.Uint32, ffi.Uint32)>()
int wgpun_CommandEncoderCopyTextureToBuffer(
  1. int encoder,
  2. int texture,
  3. int buffer,
  4. int bytes_per_row,
  5. int rows_per_image,
  6. int width,
  7. int height,
  8. int depth,
  9. int mip_level,
  10. int origin_x,
  11. int origin_y,
  12. int origin_z,
)

Implementation

@ffi.Native<
  ffi.Uint8 Function(
    ffi.Uint64,
    ffi.Uint64,
    ffi.Uint64,
    ffi.Uint32,
    ffi.Uint32,
    ffi.Uint32,
    ffi.Uint32,
    ffi.Uint32,
    ffi.Uint32,
    ffi.Uint32,
    ffi.Uint32,
    ffi.Uint32,
  )
>()
external int wgpun_CommandEncoderCopyTextureToBuffer(
  int encoder,
  int texture,
  int buffer,
  int bytes_per_row,
  int rows_per_image,
  int width,
  int height,
  int depth,
  int mip_level,
  int origin_x,
  int origin_y,
  int origin_z,
);