Render Pipeline
const pipeline = device.createRenderPipeline({
label: 'Level Render Pipeline',
layout: pipelineLayout,
vertex: {
module: shaderModule,
entryPoint: 'vertexMain',
buffers: vertexBufferLayout,
},
fragment: {
module: shaderModule,
entryPoint: 'fragmentMain',
targets: [{ format: canvasFormat }]
}
});