Cleanup: change POD casts from static_cast to functional/ctor casts, for consistency (#2648)

Co-authored-by: Raziel Alphadios <raziely@gmail.com>
This commit is contained in:
Raziel Alphadios
2021-11-01 00:54:10 +02:00
committed by GitHub
parent b2d13fc3b8
commit 094d34194c
4 changed files with 16 additions and 16 deletions

View File

@@ -328,7 +328,7 @@ namespace bgfx { namespace spirv
bx::ErrorAssert err;
uint16_t count = static_cast<uint16_t>(uniforms.size() );
uint16_t count = uint16_t(uniforms.size());
bx::write(_writer, count, &err);
uint32_t fragmentBit = isFragmentShader ? kUniformFragmentBit : 0;