protected override PixelBox LockImpl( BasicBox lockBox, BufferLocking options )
{
AllocateBuffer();
if ( options != BufferLocking.Discard &&
( Usage & BufferUsage.WriteOnly ) == 0 )
{
// Download the old contents of the texture
Download( _buffer );
}
_currentLocking = options;
return _buffer.GetSubVolume( lockBox );
}