Synced
IRenderResourceService.ReadTextureAsync
Section titled “IRenderResourceService.ReadTextureAsync”
- Asynchronously copies one complete persistent texture mip into CPU-visible memory.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Rendering.Runtime
Declaration
Section titled “Declaration”System.Threading.Tasks.ValueTask<Inno.Rendering.RenderTextureReadbackResult> Inno.Rendering.Runtime.IRenderResourceService.ReadTextureAsync(Inno.Rendering.PersistentTextureHandle texture, int mipLevel = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))Parameters
Section titled “Parameters”Parameter texture: Texture created with F:Inno.Rendering.RenderTextureUsage.Readback.
Parameter mipLevel: Zero-based mip level.
Parameter cancellationToken: Cancellation for the caller’s wait.
Returns
Section titled “Returns”The immutable readback result after a later GPU frame completes it.