Class TexturePixelMemoryManager<TDriver>
Manages and represents the entire pixel memory of a locked Texture<TDriver> or a partial rectangle of it
public sealed class TexturePixelMemoryManager<TDriver> : TexturePixelMemoryManager, IDisposable where TDriver : notnull, IRenderingDriver
Type Parameters
TDriverThe type of the rendering driver associated with the Texture<TDriver>
- Inheritance
-
TexturePixelMemoryManager<TDriver>
- Implements
- Inherited Members
Properties
IsPinned
Gets a value indicating whether the Texture is currently locked (pinned)
public override bool IsPinned { get; }
Property Value
- bool
true if the Texture is currently locked (pinned); otherwise, false (Texture is
nullin that case)
Texture
Gets the locked texture
public override Texture<TDriver>? Texture { get; }
Property Value
Methods
Dispose(bool)
Disposes the TexturePixelMemoryManager, unlocking the associated Texture
protected override void Dispose(bool disposing)
Parameters
disposingboolA value indicating whether this method is called from Dispose() (
true) or from the finalizer (false)
Remarks
Calling this method unlocks the associated Texture, if it's still locked, applying any changes made to the pixel data, and making its pixel memory inaccessible until it's locked again.
- See Also
-
Dispose()