delete local descriptorSet for v3.2.0 (#8774)

This commit is contained in:
troublemaker52025
2021-06-07 15:46:02 +08:00
committed by GitHub
parent f58bcd2536
commit bc7a9cedc1
@@ -126,14 +126,11 @@ export class RenderShadowMapBatchedQueue {
public add (model: Model, cmdBuff: CommandBuffer, _shadowPassIndices: number[]) {
const subModels = model.subModels;
const shadowMapBuffer = this._pipeline.descriptorSet.getBuffer(UBOShadow.BINDING);
for (let j = 0; j < subModels.length; j++) {
const subModel = subModels[j];
const shadowPassIdx = _shadowPassIndices[j];
const pass = subModel.passes[shadowPassIdx];
const batchingScheme = pass.batchingScheme;
subModel.descriptorSet.bindBuffer(UBOShadow.BINDING, shadowMapBuffer);
subModel.descriptorSet.update();
if (batchingScheme === BatchingSchemes.INSTANCING) { // instancing
const buffer = InstancedBuffer.get(pass);