mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 05:08:14 +00:00
wgpu: add missing JS impl for RenderPassEncoderSetBlendConstant
This commit is contained in:
Vendored
+10
@@ -2450,6 +2450,16 @@ class WebGPUInterface {
|
|||||||
renderPassEncoder.setBindGroup(groupIndex, group, dynamicOffsets);
|
renderPassEncoder.setBindGroup(groupIndex, group, dynamicOffsets);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @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} renderPassEncoderIdx
|
||||||
* @param {number} bufferIdx
|
* @param {number} bufferIdx
|
||||||
|
|||||||
Reference in New Issue
Block a user