You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// here we need to render that texture into canvas
7
12
constcanvasTexture=context.getCurrentTexture()
@@ -19,8 +24,8 @@ export default function getCanvasRenderDescriptor(context: GPUCanvasContext, dev
19
24
label: 'our render to canvas renderPass',
20
25
colorAttachments: [
21
26
{
22
-
view: multisampleTexture.createView(),
23
-
resolveTarget: canvasTexture.createView(),// resolveTarget is used to resolve multisample texture into single sample texture
27
+
view: multisampleTexture.createView({label: 'multisample texture view'}),// we draw to this texture first
28
+
resolveTarget: canvasTexture.createView({label: 'canvas texture view'}),// resolveTarget is used to resolve multisample texture into single sample texture
24
29
clearValue: [0,0,0,1],
25
30
loadOp: 'clear',// before rendering clear the texture to value "clear". Other option is "load" to load existing content of the texture into GPU so we can draw over it
26
31
storeOp: 'store',// to store the result of what we draw, other option is "discard"
0 commit comments