@plasius/gpu-shader 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +203 -0
- package/README.md +434 -0
- package/dist/cli.cjs +12742 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/cli.d.cts +4 -0
- package/dist/cli.d.ts +4 -0
- package/dist/cli.js +12718 -0
- package/dist/cli.js.map +1 -0
- package/dist/contracts-C4eel8MT.d.cts +1220 -0
- package/dist/contracts-C4eel8MT.d.ts +1220 -0
- package/dist/index.cjs +2512 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +88 -0
- package/dist/index.d.ts +88 -0
- package/dist/index.js +2456 -0
- package/dist/index.js.map +1 -0
- package/dist/node.cjs +10131 -0
- package/dist/node.cjs.map +1 -0
- package/dist/node.d.cts +50 -0
- package/dist/node.d.ts +50 -0
- package/dist/node.js +10099 -0
- package/dist/node.js.map +1 -0
- package/dist/testing.cjs +1927 -0
- package/dist/testing.cjs.map +1 -0
- package/dist/testing.d.cts +82 -0
- package/dist/testing.d.ts +82 -0
- package/dist/testing.js +1888 -0
- package/dist/testing.js.map +1 -0
- package/matrices/stable-webgpu-2026-07-13.json +545 -0
- package/package.json +100 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { J as JsonValue, S as Sha256Hex, G as GpuInterfaceManifest, a as SerializableGpuPipelineDescriptor, b as ShaderRequirements, c as ShaderVersionManifest, d as GpuRecordValue, e as GpuRecordLayout, f as GpuRecordCodec, M as ModelGpuCompatibilityDescriptor, g as ShaderVersionManifestCore, h as ShaderStyleProfileManifest, i as GpuCapabilitySnapshot, j as ShaderResult, k as ModelShaderCompatibility, l as ShaderStyleProfileRef, P as PromotedShaderCatalogResolver, L as LoadedShaderStyleProfile, m as GpuDeviceLike, n as PreparedShaderStyleProfile, o as ShaderStyleController, A as ActiveShaderStyleProfile, F as FrameBoundaryScheduler } from './contracts-C4eel8MT.cjs';
|
|
2
|
+
export { p as AssembledWgslModule, q as GPU_INTERFACE_MANIFEST_VERSION, r as GPU_SHADER_STORE_FEATURE_FLAG, s as GPU_SHADER_STYLE_SELECTION_CAPABILITY, t as GeneratedGpuInterfaceArtifacts, u as GitObjectId, v as GpuAddressSpace, w as GpuArrayLayout, x as GpuAtomicLayout, y as GpuBindingAccess, z as GpuBindingLayout, B as GpuBindingResourceLayout, C as GpuCompareFunction, D as GpuCompilationMessageLike, E as GpuEntryPointInterface, H as GpuEntryPointIo, I as GpuHostAddressSpace, K as GpuInterfaceRef, N as GpuLimitRequirement, O as GpuMatrixLayout, Q as GpuMatrixValue, R as GpuModelAbiProjection, T as GpuModelBindingLayout, U as GpuModelBindingSelector, V as GpuModelVertexInputLayout, W as GpuOverrideLayout, X as GpuRecordMemberLayout, Y as GpuRecordReferenceLayout, Z as GpuScalarKind, _ as GpuScalarLayout, $ as GpuScalarValue, a0 as GpuSemanticProjection, a1 as GpuSemanticSelector, a2 as GpuSemanticSource, a3 as GpuShaderModuleLike, a4 as GpuShaderStage, a5 as GpuTypeLayout, a6 as GpuVectorLayout, a7 as GpuVectorValue, a8 as GpuVertexInputLayout, a9 as GpuWorkgroupDimension, aa as JsonPrimitive, ab as LoadedShaderVersion, ac as ReflectGpuInterfaceInput, ad as SHADER_COMPILE_UNIT_VERSION, ae as SHADER_QUALIFICATION_BUNDLE_VERSION, af as SHADER_QUALIFICATION_FIXTURE_VERSION, ag as SHADER_STYLE_PROFILE_MANIFEST_VERSION, ah as SHADER_VALIDATION_EVIDENCE_VERSION, ai as SHADER_VERSION_MANIFEST_VERSION, aj as STABLE_WEBGPU_MATRIX_VERSION, ak as SUPPORTED_ADDITIVE_WEBGPU_MATRIX_POLICIES, al as SUPPORTED_STABLE_WEBGPU_MATRIX_POLICIES, am as ScopedShaderValidationEvidenceRef, an as SerializableGpuBindGroupLayout, ao as SerializableGpuBlendComponent, ap as SerializableGpuComputePipelineDescriptor, aq as SerializableGpuPipelineLayout, ar as SerializableGpuProgrammableStage, as as SerializableGpuRenderPipelineDescriptor, at as SerializableGpuStencilFaceState, au as ShaderCellEvidence, av as ShaderCompileContext, aw as ShaderCompileFixture, ax as ShaderCompileUnitInventory, ay as ShaderCompileUnitManifest, az as ShaderDiagnostic, aA as ShaderDiagnosticCode, aB as ShaderDiagnosticSeverity, aC as ShaderMatrixBrowserName, aD as ShaderMatrixOsName, aE as ShaderNonQualifyingWorkflowDiagnostic, aF as ShaderQualificationBindGroupResource, aG as ShaderQualificationBufferRecordLayoutProbe, aH as ShaderQualificationBundleManifest, aI as ShaderQualificationCandidateSubject, aJ as ShaderQualificationCommand, aK as ShaderQualificationExecutionProducer, aL as ShaderQualificationFixtureManifest, aM as ShaderQualificationLayoutProbe, aN as ShaderQualificationModelCompatibilityFixture, aO as ShaderQualificationPhaseEvidence, aP as ShaderQualificationPhaseName, aQ as ShaderQualificationPreflightManifest, aR as ShaderQualificationResource, aS as ShaderQualificationResult, aT as ShaderQualificationStatus, aU as ShaderQualificationTextureViewDescriptor, aV as ShaderQualificationVertexInputLayoutProbe, aW as ShaderRenderRole, aX as ShaderRunnerCellPreflightEvidence, aY as ShaderStyleRoleBinding, aZ as ShaderTrustedWorkflowProvenance, a_ as ShaderValidationCellRun, a$ as ShaderValidationEvidence, b0 as ShaderValidationEvidenceAttestationRef, b1 as ShaderValidationEvidenceRef, b2 as ShaderValidationEvidenceSubject, b3 as ShaderValidationScopeRequirement, b4 as ShaderVersionRef, b5 as StableWebGpuMatrixCell, b6 as StableWebGpuMatrixManifest } from './contracts-C4eel8MT.cjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Canonicalizes contract data using the JSON Canonicalization Scheme ordering
|
|
6
|
+
* rules. Unsupported JavaScript values are rejected rather than silently lost.
|
|
7
|
+
*/
|
|
8
|
+
declare function canonicalizeGpuContract(value: unknown): string;
|
|
9
|
+
/** Parses and verifies exact JCS canonical JSON while preserving its JSON-only type. */
|
|
10
|
+
declare function parseCanonicalJson(value: string): JsonValue;
|
|
11
|
+
|
|
12
|
+
declare function asSha256Hex(value: string): Sha256Hex;
|
|
13
|
+
/** Computes a SHA-256 digest using the browser-safe Web Crypto API. */
|
|
14
|
+
declare function computeSha256(value: Uint8Array | string): Promise<Sha256Hex>;
|
|
15
|
+
type ComputeGpuAbiHashInput = {
|
|
16
|
+
readonly kind: "model";
|
|
17
|
+
readonly interface: GpuInterfaceManifest;
|
|
18
|
+
} | {
|
|
19
|
+
readonly kind: "interface";
|
|
20
|
+
readonly interface: GpuInterfaceManifest;
|
|
21
|
+
} | {
|
|
22
|
+
readonly kind: "shader";
|
|
23
|
+
readonly interface: GpuInterfaceManifest;
|
|
24
|
+
readonly pipelines: readonly SerializableGpuPipelineDescriptor[];
|
|
25
|
+
readonly requirements: ShaderRequirements;
|
|
26
|
+
};
|
|
27
|
+
/** Computes a domain-separated ABI digest over normalized structural data. */
|
|
28
|
+
declare function computeGpuAbiHash(input: ComputeGpuAbiHashInput): Promise<Sha256Hex>;
|
|
29
|
+
/** Breaks the manifest/evidence digest cycle by omitting only the evidence reference. */
|
|
30
|
+
declare function computeShaderManifestCoreSha256(manifest: Omit<ShaderVersionManifest, "validationEvidence" | "additionalValidationEvidence"> | ShaderVersionManifest): Promise<Sha256Hex>;
|
|
31
|
+
|
|
32
|
+
/** Creates a strict, little-endian codec directly from reflected record layouts. */
|
|
33
|
+
declare function createGpuRecordCodec<T = GpuRecordValue>(record: GpuRecordLayout, records?: readonly GpuRecordLayout[]): GpuRecordCodec<T>;
|
|
34
|
+
|
|
35
|
+
/** Performs pure manifest/model/device compatibility checks without creating GPU resources. */
|
|
36
|
+
declare function validateModelShaderCompatibility(input: {
|
|
37
|
+
readonly model: ModelGpuCompatibilityDescriptor;
|
|
38
|
+
readonly shader: ShaderVersionManifestCore;
|
|
39
|
+
/** Exact reflected interface referenced by `shader`; required to prevent sidecar understatement. */
|
|
40
|
+
readonly gpuInterface: GpuInterfaceManifest;
|
|
41
|
+
readonly profile?: ShaderStyleProfileManifest;
|
|
42
|
+
readonly capabilities?: GpuCapabilitySnapshot;
|
|
43
|
+
}): ShaderResult<ModelShaderCompatibility>;
|
|
44
|
+
|
|
45
|
+
/** Strictly parses untrusted reflected interface JSON and validates all nested references. */
|
|
46
|
+
declare function parseGpuInterfaceManifest(value: unknown): GpuInterfaceManifest;
|
|
47
|
+
/** Strictly parses an immutable shader-version manifest. */
|
|
48
|
+
declare function parseShaderVersionManifest(value: unknown): ShaderVersionManifest;
|
|
49
|
+
/** Strictly parses the cycle-free shader manifest qualified before evidence attachment. */
|
|
50
|
+
declare function parseShaderVersionManifestCore(value: unknown): ShaderVersionManifestCore;
|
|
51
|
+
/** Strictly parses a rendering-style profile with exact immutable shader references. */
|
|
52
|
+
declare function parseShaderStyleProfileManifest(value: unknown): ShaderStyleProfileManifest;
|
|
53
|
+
/** Strictly parses the model-facing GPU compatibility fields published with a model version. */
|
|
54
|
+
declare function parseModelGpuCompatibilityDescriptor(value: unknown): ModelGpuCompatibilityDescriptor;
|
|
55
|
+
declare function parseJsonBytes(bytes: Uint8Array, label: string): unknown;
|
|
56
|
+
|
|
57
|
+
/** Loads only exact, promoted profile/shader/interface/module assets and verifies every digest. */
|
|
58
|
+
declare function loadShaderStyleProfile(input: {
|
|
59
|
+
readonly ref: ShaderStyleProfileRef;
|
|
60
|
+
readonly catalog: PromotedShaderCatalogResolver;
|
|
61
|
+
readonly signal?: AbortSignal;
|
|
62
|
+
}): Promise<ShaderResult<LoadedShaderStyleProfile>>;
|
|
63
|
+
|
|
64
|
+
/** Validates, compiles, and creates every replacement pipeline before activation. */
|
|
65
|
+
declare function prepareStyleProfile(input: {
|
|
66
|
+
readonly loaded: LoadedShaderStyleProfile;
|
|
67
|
+
readonly model: ModelGpuCompatibilityDescriptor;
|
|
68
|
+
readonly capabilities: GpuCapabilitySnapshot;
|
|
69
|
+
readonly device: GpuDeviceLike;
|
|
70
|
+
readonly now?: () => number;
|
|
71
|
+
readonly timeoutMs?: number;
|
|
72
|
+
readonly signal?: AbortSignal;
|
|
73
|
+
}): Promise<ShaderResult<PreparedShaderStyleProfile>>;
|
|
74
|
+
|
|
75
|
+
/** Creates an atomic frame-boundary style-profile controller. */
|
|
76
|
+
declare function createShaderStyleController(input: {
|
|
77
|
+
readonly scheduler: FrameBoundaryScheduler;
|
|
78
|
+
readonly initial?: PreparedShaderStyleProfile;
|
|
79
|
+
readonly now?: () => number;
|
|
80
|
+
}): ShaderStyleController;
|
|
81
|
+
/** Atomically swaps a fully prepared profile; failure preserves the active profile. */
|
|
82
|
+
declare function activateStyleProfile(input: {
|
|
83
|
+
readonly controller: ShaderStyleController;
|
|
84
|
+
readonly prepared: PreparedShaderStyleProfile;
|
|
85
|
+
readonly retire?: (previous: PreparedShaderStyleProfile) => void | Promise<void>;
|
|
86
|
+
}): Promise<ShaderResult<ActiveShaderStyleProfile>>;
|
|
87
|
+
|
|
88
|
+
export { ActiveShaderStyleProfile, FrameBoundaryScheduler, GpuCapabilitySnapshot, GpuDeviceLike, GpuInterfaceManifest, GpuRecordCodec, GpuRecordLayout, GpuRecordValue, JsonValue, LoadedShaderStyleProfile, ModelGpuCompatibilityDescriptor, ModelShaderCompatibility, PreparedShaderStyleProfile, PromotedShaderCatalogResolver, SerializableGpuPipelineDescriptor, Sha256Hex, ShaderRequirements, ShaderResult, ShaderStyleController, ShaderStyleProfileManifest, ShaderStyleProfileRef, ShaderVersionManifest, ShaderVersionManifestCore, activateStyleProfile, asSha256Hex, canonicalizeGpuContract, computeGpuAbiHash, computeSha256, computeShaderManifestCoreSha256, createGpuRecordCodec, createShaderStyleController, loadShaderStyleProfile, parseCanonicalJson, parseGpuInterfaceManifest, parseJsonBytes, parseModelGpuCompatibilityDescriptor, parseShaderStyleProfileManifest, parseShaderVersionManifest, parseShaderVersionManifestCore, prepareStyleProfile, validateModelShaderCompatibility };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { J as JsonValue, S as Sha256Hex, G as GpuInterfaceManifest, a as SerializableGpuPipelineDescriptor, b as ShaderRequirements, c as ShaderVersionManifest, d as GpuRecordValue, e as GpuRecordLayout, f as GpuRecordCodec, M as ModelGpuCompatibilityDescriptor, g as ShaderVersionManifestCore, h as ShaderStyleProfileManifest, i as GpuCapabilitySnapshot, j as ShaderResult, k as ModelShaderCompatibility, l as ShaderStyleProfileRef, P as PromotedShaderCatalogResolver, L as LoadedShaderStyleProfile, m as GpuDeviceLike, n as PreparedShaderStyleProfile, o as ShaderStyleController, A as ActiveShaderStyleProfile, F as FrameBoundaryScheduler } from './contracts-C4eel8MT.js';
|
|
2
|
+
export { p as AssembledWgslModule, q as GPU_INTERFACE_MANIFEST_VERSION, r as GPU_SHADER_STORE_FEATURE_FLAG, s as GPU_SHADER_STYLE_SELECTION_CAPABILITY, t as GeneratedGpuInterfaceArtifacts, u as GitObjectId, v as GpuAddressSpace, w as GpuArrayLayout, x as GpuAtomicLayout, y as GpuBindingAccess, z as GpuBindingLayout, B as GpuBindingResourceLayout, C as GpuCompareFunction, D as GpuCompilationMessageLike, E as GpuEntryPointInterface, H as GpuEntryPointIo, I as GpuHostAddressSpace, K as GpuInterfaceRef, N as GpuLimitRequirement, O as GpuMatrixLayout, Q as GpuMatrixValue, R as GpuModelAbiProjection, T as GpuModelBindingLayout, U as GpuModelBindingSelector, V as GpuModelVertexInputLayout, W as GpuOverrideLayout, X as GpuRecordMemberLayout, Y as GpuRecordReferenceLayout, Z as GpuScalarKind, _ as GpuScalarLayout, $ as GpuScalarValue, a0 as GpuSemanticProjection, a1 as GpuSemanticSelector, a2 as GpuSemanticSource, a3 as GpuShaderModuleLike, a4 as GpuShaderStage, a5 as GpuTypeLayout, a6 as GpuVectorLayout, a7 as GpuVectorValue, a8 as GpuVertexInputLayout, a9 as GpuWorkgroupDimension, aa as JsonPrimitive, ab as LoadedShaderVersion, ac as ReflectGpuInterfaceInput, ad as SHADER_COMPILE_UNIT_VERSION, ae as SHADER_QUALIFICATION_BUNDLE_VERSION, af as SHADER_QUALIFICATION_FIXTURE_VERSION, ag as SHADER_STYLE_PROFILE_MANIFEST_VERSION, ah as SHADER_VALIDATION_EVIDENCE_VERSION, ai as SHADER_VERSION_MANIFEST_VERSION, aj as STABLE_WEBGPU_MATRIX_VERSION, ak as SUPPORTED_ADDITIVE_WEBGPU_MATRIX_POLICIES, al as SUPPORTED_STABLE_WEBGPU_MATRIX_POLICIES, am as ScopedShaderValidationEvidenceRef, an as SerializableGpuBindGroupLayout, ao as SerializableGpuBlendComponent, ap as SerializableGpuComputePipelineDescriptor, aq as SerializableGpuPipelineLayout, ar as SerializableGpuProgrammableStage, as as SerializableGpuRenderPipelineDescriptor, at as SerializableGpuStencilFaceState, au as ShaderCellEvidence, av as ShaderCompileContext, aw as ShaderCompileFixture, ax as ShaderCompileUnitInventory, ay as ShaderCompileUnitManifest, az as ShaderDiagnostic, aA as ShaderDiagnosticCode, aB as ShaderDiagnosticSeverity, aC as ShaderMatrixBrowserName, aD as ShaderMatrixOsName, aE as ShaderNonQualifyingWorkflowDiagnostic, aF as ShaderQualificationBindGroupResource, aG as ShaderQualificationBufferRecordLayoutProbe, aH as ShaderQualificationBundleManifest, aI as ShaderQualificationCandidateSubject, aJ as ShaderQualificationCommand, aK as ShaderQualificationExecutionProducer, aL as ShaderQualificationFixtureManifest, aM as ShaderQualificationLayoutProbe, aN as ShaderQualificationModelCompatibilityFixture, aO as ShaderQualificationPhaseEvidence, aP as ShaderQualificationPhaseName, aQ as ShaderQualificationPreflightManifest, aR as ShaderQualificationResource, aS as ShaderQualificationResult, aT as ShaderQualificationStatus, aU as ShaderQualificationTextureViewDescriptor, aV as ShaderQualificationVertexInputLayoutProbe, aW as ShaderRenderRole, aX as ShaderRunnerCellPreflightEvidence, aY as ShaderStyleRoleBinding, aZ as ShaderTrustedWorkflowProvenance, a_ as ShaderValidationCellRun, a$ as ShaderValidationEvidence, b0 as ShaderValidationEvidenceAttestationRef, b1 as ShaderValidationEvidenceRef, b2 as ShaderValidationEvidenceSubject, b3 as ShaderValidationScopeRequirement, b4 as ShaderVersionRef, b5 as StableWebGpuMatrixCell, b6 as StableWebGpuMatrixManifest } from './contracts-C4eel8MT.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Canonicalizes contract data using the JSON Canonicalization Scheme ordering
|
|
6
|
+
* rules. Unsupported JavaScript values are rejected rather than silently lost.
|
|
7
|
+
*/
|
|
8
|
+
declare function canonicalizeGpuContract(value: unknown): string;
|
|
9
|
+
/** Parses and verifies exact JCS canonical JSON while preserving its JSON-only type. */
|
|
10
|
+
declare function parseCanonicalJson(value: string): JsonValue;
|
|
11
|
+
|
|
12
|
+
declare function asSha256Hex(value: string): Sha256Hex;
|
|
13
|
+
/** Computes a SHA-256 digest using the browser-safe Web Crypto API. */
|
|
14
|
+
declare function computeSha256(value: Uint8Array | string): Promise<Sha256Hex>;
|
|
15
|
+
type ComputeGpuAbiHashInput = {
|
|
16
|
+
readonly kind: "model";
|
|
17
|
+
readonly interface: GpuInterfaceManifest;
|
|
18
|
+
} | {
|
|
19
|
+
readonly kind: "interface";
|
|
20
|
+
readonly interface: GpuInterfaceManifest;
|
|
21
|
+
} | {
|
|
22
|
+
readonly kind: "shader";
|
|
23
|
+
readonly interface: GpuInterfaceManifest;
|
|
24
|
+
readonly pipelines: readonly SerializableGpuPipelineDescriptor[];
|
|
25
|
+
readonly requirements: ShaderRequirements;
|
|
26
|
+
};
|
|
27
|
+
/** Computes a domain-separated ABI digest over normalized structural data. */
|
|
28
|
+
declare function computeGpuAbiHash(input: ComputeGpuAbiHashInput): Promise<Sha256Hex>;
|
|
29
|
+
/** Breaks the manifest/evidence digest cycle by omitting only the evidence reference. */
|
|
30
|
+
declare function computeShaderManifestCoreSha256(manifest: Omit<ShaderVersionManifest, "validationEvidence" | "additionalValidationEvidence"> | ShaderVersionManifest): Promise<Sha256Hex>;
|
|
31
|
+
|
|
32
|
+
/** Creates a strict, little-endian codec directly from reflected record layouts. */
|
|
33
|
+
declare function createGpuRecordCodec<T = GpuRecordValue>(record: GpuRecordLayout, records?: readonly GpuRecordLayout[]): GpuRecordCodec<T>;
|
|
34
|
+
|
|
35
|
+
/** Performs pure manifest/model/device compatibility checks without creating GPU resources. */
|
|
36
|
+
declare function validateModelShaderCompatibility(input: {
|
|
37
|
+
readonly model: ModelGpuCompatibilityDescriptor;
|
|
38
|
+
readonly shader: ShaderVersionManifestCore;
|
|
39
|
+
/** Exact reflected interface referenced by `shader`; required to prevent sidecar understatement. */
|
|
40
|
+
readonly gpuInterface: GpuInterfaceManifest;
|
|
41
|
+
readonly profile?: ShaderStyleProfileManifest;
|
|
42
|
+
readonly capabilities?: GpuCapabilitySnapshot;
|
|
43
|
+
}): ShaderResult<ModelShaderCompatibility>;
|
|
44
|
+
|
|
45
|
+
/** Strictly parses untrusted reflected interface JSON and validates all nested references. */
|
|
46
|
+
declare function parseGpuInterfaceManifest(value: unknown): GpuInterfaceManifest;
|
|
47
|
+
/** Strictly parses an immutable shader-version manifest. */
|
|
48
|
+
declare function parseShaderVersionManifest(value: unknown): ShaderVersionManifest;
|
|
49
|
+
/** Strictly parses the cycle-free shader manifest qualified before evidence attachment. */
|
|
50
|
+
declare function parseShaderVersionManifestCore(value: unknown): ShaderVersionManifestCore;
|
|
51
|
+
/** Strictly parses a rendering-style profile with exact immutable shader references. */
|
|
52
|
+
declare function parseShaderStyleProfileManifest(value: unknown): ShaderStyleProfileManifest;
|
|
53
|
+
/** Strictly parses the model-facing GPU compatibility fields published with a model version. */
|
|
54
|
+
declare function parseModelGpuCompatibilityDescriptor(value: unknown): ModelGpuCompatibilityDescriptor;
|
|
55
|
+
declare function parseJsonBytes(bytes: Uint8Array, label: string): unknown;
|
|
56
|
+
|
|
57
|
+
/** Loads only exact, promoted profile/shader/interface/module assets and verifies every digest. */
|
|
58
|
+
declare function loadShaderStyleProfile(input: {
|
|
59
|
+
readonly ref: ShaderStyleProfileRef;
|
|
60
|
+
readonly catalog: PromotedShaderCatalogResolver;
|
|
61
|
+
readonly signal?: AbortSignal;
|
|
62
|
+
}): Promise<ShaderResult<LoadedShaderStyleProfile>>;
|
|
63
|
+
|
|
64
|
+
/** Validates, compiles, and creates every replacement pipeline before activation. */
|
|
65
|
+
declare function prepareStyleProfile(input: {
|
|
66
|
+
readonly loaded: LoadedShaderStyleProfile;
|
|
67
|
+
readonly model: ModelGpuCompatibilityDescriptor;
|
|
68
|
+
readonly capabilities: GpuCapabilitySnapshot;
|
|
69
|
+
readonly device: GpuDeviceLike;
|
|
70
|
+
readonly now?: () => number;
|
|
71
|
+
readonly timeoutMs?: number;
|
|
72
|
+
readonly signal?: AbortSignal;
|
|
73
|
+
}): Promise<ShaderResult<PreparedShaderStyleProfile>>;
|
|
74
|
+
|
|
75
|
+
/** Creates an atomic frame-boundary style-profile controller. */
|
|
76
|
+
declare function createShaderStyleController(input: {
|
|
77
|
+
readonly scheduler: FrameBoundaryScheduler;
|
|
78
|
+
readonly initial?: PreparedShaderStyleProfile;
|
|
79
|
+
readonly now?: () => number;
|
|
80
|
+
}): ShaderStyleController;
|
|
81
|
+
/** Atomically swaps a fully prepared profile; failure preserves the active profile. */
|
|
82
|
+
declare function activateStyleProfile(input: {
|
|
83
|
+
readonly controller: ShaderStyleController;
|
|
84
|
+
readonly prepared: PreparedShaderStyleProfile;
|
|
85
|
+
readonly retire?: (previous: PreparedShaderStyleProfile) => void | Promise<void>;
|
|
86
|
+
}): Promise<ShaderResult<ActiveShaderStyleProfile>>;
|
|
87
|
+
|
|
88
|
+
export { ActiveShaderStyleProfile, FrameBoundaryScheduler, GpuCapabilitySnapshot, GpuDeviceLike, GpuInterfaceManifest, GpuRecordCodec, GpuRecordLayout, GpuRecordValue, JsonValue, LoadedShaderStyleProfile, ModelGpuCompatibilityDescriptor, ModelShaderCompatibility, PreparedShaderStyleProfile, PromotedShaderCatalogResolver, SerializableGpuPipelineDescriptor, Sha256Hex, ShaderRequirements, ShaderResult, ShaderStyleController, ShaderStyleProfileManifest, ShaderStyleProfileRef, ShaderVersionManifest, ShaderVersionManifestCore, activateStyleProfile, asSha256Hex, canonicalizeGpuContract, computeGpuAbiHash, computeSha256, computeShaderManifestCoreSha256, createGpuRecordCodec, createShaderStyleController, loadShaderStyleProfile, parseCanonicalJson, parseGpuInterfaceManifest, parseJsonBytes, parseModelGpuCompatibilityDescriptor, parseShaderStyleProfileManifest, parseShaderVersionManifest, parseShaderVersionManifestCore, prepareStyleProfile, validateModelShaderCompatibility };
|