getCurrentTexture method

GPUTexture getCurrentTexture()

The texture to draw this frame into.

Valid for the task it was asked in and no longer. It cannot be held across an await, which is why presenting is a copy into it rather than rendering into it: the engine's target already exists and the copy is one command on an encoder that is submitted immediately.

Implementation

external GPUTexture getCurrentTexture();