csharp
public interface IMeshletPageSourceWhere a page's bytes are read from.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
An interface rather than a call into the asset system, for two reasons that pull the same way. The pool is in Vixen.Rendering and the asset system is above it, so a direct call would be a reference in the wrong direction; and the phase-2 exit criterion asks for a camera path run with a synthetic I/O delay injected, which is a fake implementation of exactly this.
Asynchronous, because reading from disk is — and because the whole point of a residency manager is that a frame does not wait for one.
Methods (1)
ValueTask<int> ReadAsync(PageKey key, Memory<byte> destination, CancellationToken cancellation)Reads one page's bytes.
Used by (4)
- DelayedSourceVixen.Rendering.Tests
- MemoryMeshletPageSourceVixen.Rendering
- MeshletPagePoolVixen.Rendering
- StreamMeshletPageSourceVixen.Rendering