mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
fix web-pipeline ui in post-processing (#14145)
This commit is contained in:
@@ -1140,6 +1140,14 @@ void NativeProgramLibrary::init(gfx::Device *deviceIn) {
|
||||
}
|
||||
}
|
||||
|
||||
// update ubo
|
||||
// tips: for compatibility with old version, when maxVertexUniformVectors is 128, maxJoints = 30
|
||||
uint maxJoints = (device->getCapabilities().maxVertexUniformVectors - 38) / 3;
|
||||
maxJoints = maxJoints < 256 ? maxJoints : 256;
|
||||
pipeline::SkinningJointCapacity::jointUniformCapacity = maxJoints;
|
||||
pipeline::UBOSkinning::initLayout(maxJoints);
|
||||
|
||||
// init layout graph
|
||||
auto &lg = layoutGraph;
|
||||
for (const auto v : makeRange(vertices(lg))) {
|
||||
auto &layout = get(LayoutGraphData::Layout, lg, v);
|
||||
|
||||
Reference in New Issue
Block a user