mirror of
https://github.com/AssetRipper/AssetRipper.Compute.git
synced 2026-11-13 20:05:29 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1e263dd849 | ||
|
|
9678b4c296 |
No files matched your search
@@ -56,12 +56,12 @@ internal static class GraphicsDeviceExtensions
|
||||
nuint maxMemorySize = graphicsDevice.GetMaxMemorySize();
|
||||
if (maxProportion == 1)
|
||||
{
|
||||
return (int)nuint.Min(maxMemorySize, int.MaxValue);
|
||||
return maxMemorySize > int.MaxValue ? int.MaxValue : (int)maxMemorySize;
|
||||
}
|
||||
else
|
||||
{
|
||||
float multiplied = maxProportion * maxMemorySize;
|
||||
return (int)float.Min(multiplied, int.MaxValue);
|
||||
return multiplied > int.MaxValue ? int.MaxValue : (int)multiplied;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@
|
||||
<IsAotCompatible>true</IsAotCompatible>
|
||||
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
|
||||
|
||||
<Version>1.0.0</Version>
|
||||
<Version>1.0.1</Version>
|
||||
<AssemblyVersion>$(Version)</AssemblyVersion>
|
||||
<Copyright>Copyright © ds5678</Copyright>
|
||||
<Authors>ds5678</Authors>
|
||||
|
||||
Reference in new issue
Block a user