diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2024-10-26 22:41:52 +0200 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2024-10-26 22:41:52 +0200 |
| commit | 44eef21997668a00eb75f897fb9e96976943a74a (patch) | |
| tree | 720abe60385238d1667d78526a161bb1eda61dd9 | |
| parent | bd38b4839c09f95d01a012471cdddd280ec345f7 (diff) | |
wgpu: add missing JS impl for RenderPassEncoderSetBlendConstant
| -rw-r--r-- | vendor/wgpu/wgpu.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/wgpu/wgpu.js b/vendor/wgpu/wgpu.js index c100808e3..115a90062 100644 --- a/vendor/wgpu/wgpu.js +++ b/vendor/wgpu/wgpu.js @@ -2452,6 +2452,16 @@ class WebGPUInterface { /** * @param {number} renderPassEncoderIdx + * @param {number} colorPtr + */ + wgpuRenderPassEncoderSetBlendConstant: (renderPassEncoderIdx, colorPtr) => { + const renderPassEncoder = this.renderPassEncoders.get(renderPassEncoderIdx); + this.assert(colorPtr != 0); + renderPassEncoder.setBlendConstant(this.Color(colorPtr)); + }, + + /** + * @param {number} renderPassEncoderIdx * @param {number} bufferIdx * @param {number} formatInt * @param {BigInt} offset |