.image with renderer:drawImage() to composite the
result. Render to it via canvas:beginRenderPass({ color = {{ loadOp = 'clear', storeOp = 'store', ... }} }) — the color attachment’s view
defaults to this canvas’s own colorView when omitted. MSAA requires a
user-allocated GPUTexture.new({ sampleCount = N, renderTarget = true }) as the explicit color view, with the canvas’s colorView() as
resolveTarget.
Fields
image
Backing image for renderer:drawImage().
width
Width in pixels.
height
Height in pixels.
format
Pixel format of the canvas backing texture, always ‘rgba8unorm’. A
deferred canvas reports this before its texture is allocated.
MSAA resolve requires source and target to have identical formats — always
derive GPUTexture and pipeline formats from this value:
Methods
resize
colorView
beginRenderPass
:finish().