mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 08:42:43 +08:00
[v3.6.0] Optimize se::Object::getPrivateData, math::IsEqualF, Vec3::transformMat4 (#12039)
This commit is contained in:
@@ -270,11 +270,11 @@ Sampler *DeviceValidator::getSampler(const SamplerInfo &info) {
|
||||
GeneralBarrier *DeviceValidator::getGeneralBarrier(const GeneralBarrierInfo &info) {
|
||||
if (info.prevAccesses > AccessFlagBit::PRESENT) {
|
||||
// Write access should appear on its own.
|
||||
CC_ASSERT(math::IsPowerOfTwo(toNumber(info.prevAccesses)));
|
||||
CC_ASSERT(math::isPowerOfTwo(toNumber(info.prevAccesses)));
|
||||
}
|
||||
if (info.nextAccesses > AccessFlagBit::PRESENT) {
|
||||
// Write access should appear on its own.
|
||||
CC_ASSERT(math::IsPowerOfTwo(toNumber(info.nextAccesses)));
|
||||
CC_ASSERT(math::isPowerOfTwo(toNumber(info.nextAccesses)));
|
||||
}
|
||||
|
||||
/////////// execute ///////////
|
||||
@@ -285,11 +285,11 @@ GeneralBarrier *DeviceValidator::getGeneralBarrier(const GeneralBarrierInfo &inf
|
||||
TextureBarrier *DeviceValidator::getTextureBarrier(const TextureBarrierInfo &info) {
|
||||
if (info.prevAccesses > AccessFlagBit::PRESENT) {
|
||||
// Write access should appear on its own.
|
||||
CC_ASSERT(math::IsPowerOfTwo(toNumber(info.prevAccesses)));
|
||||
CC_ASSERT(math::isPowerOfTwo(toNumber(info.prevAccesses)));
|
||||
}
|
||||
if (info.nextAccesses > AccessFlagBit::PRESENT) {
|
||||
// Write access should appear on its own.
|
||||
CC_ASSERT(math::IsPowerOfTwo(toNumber(info.nextAccesses)));
|
||||
CC_ASSERT(math::isPowerOfTwo(toNumber(info.nextAccesses)));
|
||||
}
|
||||
|
||||
/////////// execute ///////////
|
||||
|
||||
Reference in New Issue
Block a user