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
typeTgpuRenderPassColorAttachment={/** * A view describing the texture that will be output to for this color attachment. */view: GPUTextureView;/** * Indicates the depth slice index of "3d" view that will be output to for this color * attachment. */depthSlice?: number;/** * A view describing the texture that will receive the resolved output for this color * attachment if `view` is multisampled. */resolveTarget?: GPUTextureView;clearValue?: color;loadOp: GPULoadOp;storeOp: GPUStoreOp;};constrenderPipeline=root.with(size,16)// adding constants (giving slots values).withVertex(vertex_main,[attrib.a,attrib.b])// applying a vertex stage.withFragment(fragment_main)// applying a fragment stage (optional).withPrimitive({topology: 'triangle-list'})// (optional).withDepthStepcil(...)// (optional).withMultisample(...)// (optional).createPipeline({format: presentationFormat});renderPipeline.draw({colorAttachments: {},});
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Entry functions
Compute entry functions
Vertex & Fragment entry functions
Pipelines
createComputePipeline
createRenderPipeline
Example
Beta Was this translation helpful? Give feedback.
All reactions