|
@@ -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
|