getNextSwapchainColorTexture method

Texture getNextSwapchainColorTexture(
  1. Size size, [
  2. int viewIndex = 0,
  3. PixelFormat? format
])

Returns the next 8-bit swapchain color texture for view viewIndex at size, advancing that view's frame. A new size gets its own ring and transient pool; the previous size's are kept for a return.

Implementation

gpu.Texture getNextSwapchainColorTexture(
  Size size, [
  int viewIndex = 0,
  gpu.PixelFormat? format,
]) => _view(viewIndex).nextSwapchainColor(size, format);