Skip to content

Commit

Permalink
fix clang tidy error
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleyljl committed Oct 9, 2023
1 parent 5f3d278 commit f7535d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1602,7 +1602,7 @@ constexpr gfx::AccessFlags allStageReadAccess(const ResourceDesc& desc) {
if ((flags & ResourceFlags::STORAGE) != ResourceFlags::NONE) {
ret = gfx::AccessFlags::COMPUTE_SHADER_READ_OTHER | gfx::AccessFlags::FRAGMENT_SHADER_READ_OTHER | gfx::AccessFlags::VERTEX_SHADER_READ_OTHER;
} else if (isBuffer) { // NOLINT(misc-redundant-expression)
ret = gfx::AccessFlags::COMPUTE_SHADER_READ_UNIFORM_BUFFER | gfx::AccessFlags::COMPUTE_SHADER_READ_UNIFORM_BUFFER | gfx::AccessFlags::VERTEX_SHADER_READ_UNIFORM_BUFFER;
ret = gfx::AccessFlags::COMPUTE_SHADER_READ_UNIFORM_BUFFER | gfx::AccessFlags::FRAGMENT_SHADER_READ_UNIFORM_BUFFER | gfx::AccessFlags::VERTEX_SHADER_READ_UNIFORM_BUFFER;
} else {
ret = gfx::AccessFlags::COMPUTE_SHADER_READ_TEXTURE | gfx::AccessFlags::FRAGMENT_SHADER_READ_TEXTURE | gfx::AccessFlags::VERTEX_SHADER_READ_TEXTURE;
}
Expand Down
2 changes: 1 addition & 1 deletion native/cocos/scene/gpu-scene/GPUBatchPool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ void GPUBatchPool::update(uint32_t stamp) {
const auto &meshPool = _gpuScene->getMeshPool();

for (auto &batch : _batches) {
auto *pass = batch.second->getPass();
const auto *pass = batch.second->getPass();
const auto phaseId = pass->getPhaseID();
auto &items = batch.second->getItems();

Expand Down

0 comments on commit f7535d9

Please sign in to comment.