Fix some engine API to be exposed for C++ scripting
This commit is contained in:
@@ -561,7 +561,7 @@ bool GPUTexture::Resize(int32 width, int32 height, int32 depth)
|
||||
|
||||
uint64 GPUTexture::calculateMemoryUsage() const
|
||||
{
|
||||
return CalculateTextureMemoryUsage(Format(), Width(), Height(), Depth(), MipLevels()) * ArraySize();
|
||||
return RenderTools::CalculateTextureMemoryUsage(Format(), Width(), Height(), Depth(), MipLevels()) * ArraySize();
|
||||
}
|
||||
|
||||
String GPUTexture::ToString() const
|
||||
|
||||
@@ -144,7 +144,7 @@ void StreamingTexture::UnloadTexture()
|
||||
uint64 StreamingTexture::GetTotalMemoryUsage() const
|
||||
{
|
||||
const uint64 arraySize = _header.IsCubeMap ? 6 : 1;
|
||||
return CalculateTextureMemoryUsage(_header.Format, _header.Width, _header.Height, _header.MipLevels) * arraySize;
|
||||
return RenderTools::CalculateTextureMemoryUsage(_header.Format, _header.Width, _header.Height, _header.MipLevels) * arraySize;
|
||||
}
|
||||
|
||||
String StreamingTexture::ToString() const
|
||||
|
||||
Reference in New Issue
Block a user