Skip to content

Releases: antvis/g-device-api

1.6.12

29 May 08:22
972cdeb
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.6.11...1.6.12

1.6.11

21 May 11:19
5e137c5
Compare
Choose a tag to compare

What's Changed

  • Release by @xiaoiver in #192
  • Support polygonOffsetFactor / Units
const pipeline = device.createRenderPipeline({
  megaStateDescriptor: {
    polygonOffset: true,
    polygonOffsetFactor: 2,
    polygonOffsetUnits: 3,
  },
});

Full Changelog: 1.6.10...1.6.11

1.6.10

16 May 05:40
160c143
Compare
Choose a tag to compare

What's Changed

  • Release by @xiaoiver in #187
  • Support stencil union, intersection and mask in WebGL 1/2.

Full Changelog: 1.6.9...1.6.10

1.6.9

15 May 08:16
ab4dffc
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.6.8...1.6.9

1.6.8

19 Mar 11:11
8b1afb2
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.6.6...1.6.8

1.6.6

19 Mar 08:33
1a0afaa
Compare
Choose a tag to compare

Patch Changes

  • 5cfa31c: Display more granular error message when compiling wgsl with naga.

What's Changed

Full Changelog: 1.6.5...1.6.6

1.6.5

14 Mar 08:33
15bfcbb
Compare
Choose a tag to compare

Patch Changes

  • d9b7078: Separate sampler and textures correctly.

1.6.4

19 Jan 07:13
2f5028f
Compare
Choose a tag to compare

Patch Changes

  • 5c86bba: Enable filterable float32 feature in WebGPU.

1.6.3

19 Jan 05:06
5c06618
Compare
Choose a tag to compare

Patch Changes

  • 8fde282: WriteTexture should account for bytesPerRow in WebGPU.
const floatR2x2 = device.createTexture({
  format: Format.F32_R,
  width: 2,
  height: 2,
  usage: TextureUsage.SAMPLED,
});
floatR2x2.setImageData([new Float32Array([10, 20, 30, 40])]);

1.6.2

18 Jan 02:49
52a764a
Compare
Choose a tag to compare

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);