Synced
StandardBuildCaches.CreateShaderWorkspaceAsync
Section titled “StandardBuildCaches.CreateShaderWorkspaceAsync”
- Creates a shader compilation workspace in the registered process-owned build cache.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Build.Distribution.Standard
Declaration
Section titled “Declaration”public static System.Threading.Tasks.ValueTask<Inno.Core.IO.ProcessOwnedDirectory> Inno.Build.Distribution.Standard.StandardBuildCaches.CreateShaderWorkspaceAsync(string engineRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))Parameters
Section titled “Parameters”Parameter engineRoot: The checkout owning cache maintenance and the source-independent compiler request.
Parameter cancellationToken: Cancels registration or ownership acquisition before compilation begins.
Returns
Section titled “Returns”A fresh directory lease; the caller must retain it until compilation finishes and dispose it afterward. Remaining claim metadata is retired by the same cache maintenance service.
Exceptions
Section titled “Exceptions”Exception T:System.IO.IOException: The cache boundary or operation ownership cannot be established.
Exception T:System.OperationCanceledException: The request was canceled before workspace ownership was returned.
Exception T:System.ArgumentException: The checkout root is blank or relative.