VolumeTexture.LockBox(Type,Int32,LockFlags,Int32[]) Method (Microsoft.DirectX.Direct3D)
Locks a box on a volume texture resource.
Definition
Visual Basic Public Function LockBox( _
ByVal typeLock As Type, _
ByVal level As Integer, _
ByVal flags As LockFlags, _
ByVal ranks() As Integer _
) As ArrayC# public Array LockBox(
Type typeLock,
int level,
LockFlags flags,
int[] ranks
);C++ public:
Array^ LockBox(
Type^ typeLock,
int level,
LockFlags flags,
array<int>^ ranks
);JScript public function LockBox(
typeLock : Type,
level : int,
flags : LockFlags,
ranks : int[]
) : Array;
Parameters
typeLock System.Type
A Type object that indicates the type of data to return. This can be a value type or any type that contains only value types.level System.Int32
Value that specifies a level of the texture resource to lock.flags Microsoft.DirectX.Direct3D.LockFlags
Zero or more locking flags that describe the type of lock to perform. For this method, the valid flags are Discard, NoDirtyUpdate, NoSystemLock, and ReadOnly. For a description of the flags, see LockFlags.ranks System.Int32[]
Array of one to three Int32 values that indicate the dimensions of the returning Array.
Return Value
System.Array
An Array object that describes the locked region.
Remarks
For performance reasons, dirty regions are recorded only for level 0 of a texture. Dirty regions are automatically recorded when Texture.LockRectangle is called without NoDirtyUpdate or ReadOnly. For more information, see Device.UpdateTexture.
Exceptions
The method call is invalid. For example, a method's parameter might contain an invalid value.
See Also