csharp
public interface ITextureStreamSourceWhere a streamed texture's bytes are read from.
Remarks
One method, and deliberately not a Stream: a pool reads byte ranges of one file at a time from several threads, and a stream has a position that two of those would fight over. What implements this over content is AssetTextureStreamSource; what implements it in a test is an array.
Methods (1)
ValueTask<int> ReadAsync(int texture, long offset, Memory<byte> destination, CancellationToken cancellation)Reads a range of one texture's file.
Used by (4)
- AssetTextureStreamSourceVixen.Engine.Renderer
- FilesVixen.Engine.Renderer.Tests
- TexturePagePoolVixen.Engine.Renderer
- TextureStreamerVixen.Engine.Renderer