Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ValidateTotalSize() [2/2]

static unsafe void Microsoft.Xna.Framework.Graphics.Texture3D.ValidateTotalSize ( _D3DVOLUME_DESC * pVolume,
uint dwLockWidth,
uint dwLockHeight,
uint dwLockDepth,
uint dwFormatSize,
uint dwElementSize,
uint elementCount )
inlinestaticpackage

Definition at line 381 of file Texture3D.cs.

382 {
383 if (pVolume != null)
384 {
385 uint num = dwLockWidth * dwLockHeight * dwLockDepth * dwFormatSize;
386 if (dwElementSize * elementCount != num)
387 {
388 throw new ArgumentException(FrameworkResources.InvalidTotalSize);
389 }
390 }
391 }

References Microsoft.Xna.Framework.FrameworkResources.InvalidTotalSize.