diff options
Diffstat (limited to '3rdparty/bgfx/src/shader_dxbc.cpp')
-rw-r--r-- | 3rdparty/bgfx/src/shader_dxbc.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/3rdparty/bgfx/src/shader_dxbc.cpp b/3rdparty/bgfx/src/shader_dxbc.cpp index 3ca8c73dfa0..b73b215a325 100644 --- a/3rdparty/bgfx/src/shader_dxbc.cpp +++ b/3rdparty/bgfx/src/shader_dxbc.cpp @@ -730,21 +730,21 @@ namespace bgfx } uint32_t last[16]; - memset(last, 0, sizeof(last) ); + bx::memSet(last, 0, sizeof(last) ); const uint32_t remaining = _size & 0x3f; if (remaining >= 56) { - memcpy(&last[0], data, remaining); + bx::memCopy(&last[0], data, remaining); last[remaining/4] = 0x80; dxbcHashBlock(last, hash); - memset(&last[1], 0, 56); + bx::memSet(&last[1], 0, 56); } else { - memcpy(&last[1], data, remaining); + bx::memCopy(&last[1], data, remaining); last[1 + remaining/4] = 0x80; } @@ -752,7 +752,7 @@ namespace bgfx last[15] = _size * 2 + 1; dxbcHashBlock(last, hash); - memcpy(_digest, hash, 16); + bx::memCopy(_digest, hash, 16); } int32_t read(bx::ReaderI* _reader, DxbcSubOperand& _subOperand, bx::Error* _err) @@ -1928,7 +1928,7 @@ namespace bgfx uint8_t* data = (uint8_t*)mb.more(); uint32_t size = uint32_t(bx::getSize(&writer) ); _dst.byteCode.reserve(size); - memcpy(_dst.byteCode.data(), data, size); + bx::memCopy(_dst.byteCode.data(), data, size); } } // namespace bgfx |