Fields
width
Width in pixels.
height
Height in pixels.
format
Pixel format of the target. MSAA resolve requires source and target to
have identical formats — always derive GPUTexture and pipeline formats
from this value:
sampleCount
Samples per pixel. Always 1 for a canvas; can be above 1 for
context:gpuTarget() on some hosts.
view
View of the target, for a color attachment or an MSAA resolve target.
Nil on a frame with nothing to draw into. Read it each frame; a view
kept across a resize errors when a pass uses it.
Methods
beginRenderPass
:finish(). A
pass may begin while another is open, as when a drawn artboard’s own
scripts render: it runs ahead of the pass it was begun inside, so that
pass can sample its output. With nothing to draw into, the pass drops
its commands.