getNextSwapchainColorTexture method

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

Returns the next 8-bit swapchain color texture for view viewIndex at size, advancing that view's frame. The ring (and the view's transient pool) are dropped and rebuilt whenever size changes from the view's previous call.

Implementation

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