mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
delete update local descriptorSet v3.3 (#8775)
This commit is contained in:
committed by
GitHub
parent
a2266c9651
commit
6b5238bd3d
@@ -125,14 +125,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);
|
||||
@@ -145,7 +142,7 @@ export class RenderShadowMapBatchedQueue {
|
||||
} else {
|
||||
const shader = pass.getShaderVariant();
|
||||
this._subModelsArray.push(subModel);
|
||||
this._shaderArray.push(shader!);
|
||||
if (shader) this._shaderArray.push(shader);
|
||||
this._passArray.push(pass);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user