[v3.6.0] Optimize se::Object::getPrivateData, math::IsEqualF, Vec3::transformMat4 (#12039)

This commit is contained in:
James Chen
2022-07-18 14:10:16 +08:00
committed by GitHub
parent 3030a15efa
commit 3025bcd012
26 changed files with 188 additions and 240 deletions
@@ -71,7 +71,7 @@ void DescriptorSetLayoutValidator::doInit(const DescriptorSetLayoutInfo &info) {
for (const auto &binding : bindings) {
CC_ASSERT(binding.binding != INVALID_BINDING);
CC_ASSERT(binding.descriptorType != DescriptorType::UNKNOWN);
CC_ASSERT(math::IsPowerOfTwo(toNumber(binding.descriptorType)));
CC_ASSERT(math::isPowerOfTwo(toNumber(binding.descriptorType)));
CC_ASSERT(binding.count);
CC_ASSERT(binding.stageFlags != ShaderStageFlagBit::NONE);
for (const Sampler *sampler : binding.immutableSamplers) {