Releases: antvis/g-device-api
Releases · antvis/g-device-api
1.6.12
1.6.11
What's Changed
const pipeline = device.createRenderPipeline({
megaStateDescriptor: {
polygonOffset: true,
polygonOffsetFactor: 2,
polygonOffsetUnits: 3,
},
});
Full Changelog: 1.6.10...1.6.11
1.6.10
1.6.9
1.6.8
1.6.6
1.6.5
1.6.4
1.6.3
1.6.2
Patch Changes
- 94fa643: Support drawIndirect in WebGPU.
Draws primitives using parameters read from a GPUBuffer.
// Create drawIndirect values
const uint32 = new Uint32Array(4);
uint32[0] = 3;
uint32[1] = 1;
uint32[2] = 0;
uint32[3] = 0;
// Create a GPUBuffer and write the draw values into it
const drawValues = device.createBuffer({
viewOrSize: uint32,
usage: BufferUsage.INDIRECT,
});
// Draw the vertices
renderPass.drawIndirect(drawValues, 0);