Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced

StandardBuildCaches.CreateShaderWorkspaceAsync

Section titled “StandardBuildCaches.CreateShaderWorkspaceAsync”
  • Creates a shader compilation workspace in the registered process-owned build cache.

API: engine
Project: Inno.Build.Distribution.Standard

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))

Parameter engineRoot: The checkout owning cache maintenance and the source-independent compiler request.

Parameter cancellationToken: Cancels registration or ownership acquisition before compilation begins.

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.

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.