Skip to content

Commit

Permalink
rename function _resizeMaxJointForDS
Browse files Browse the repository at this point in the history
  • Loading branch information
zhakesi committed Jun 6, 2022
1 parent 8a1d9e3 commit d823cbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cocos/core/game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ export class Game extends EventTarget {
private _initEngine () {
this._initDevice();
//set max joints after device initialize.
this._modifyDescriptorSetLayout();
this._resizeMaxJointForDS();
const director = legacyCC.director;
return Promise.resolve(director._init()).then(() => {
legacyCC.view.init();
Expand Down Expand Up @@ -1054,7 +1054,7 @@ export class Game extends EventTarget {
}
}

private _modifyDescriptorSetLayout () {
private _resizeMaxJointForDS () {
let maxJoints = Math.floor((this._gfxDevice!.capabilities.maxVertexUniformVectors - 38) / 3);
maxJoints = maxJoints < 256 ? maxJoints : 256;
localDescriptorSetLayout_ResizeMaxJoints(maxJoints);
Expand Down

0 comments on commit d823cbb

Please sign in to comment.