跳转到内容

MaterialDefinitionBuilder

此内容尚不支持你的语言。

Defined in: definition-builder.ts:75

new MaterialDefinitionBuilder(options): MaterialDefinitionBuilder

Defined in: definition-builder.ts:87

MaterialDefinitionBuilderOptions

MaterialDefinitionBuilder

build(): AuthoredMaterial

Defined in: definition-builder.ts:204

AuthoredMaterial


bundledResource(resource): this

Defined in: definition-builder.ts:171

BundledMaterialResource

this


enumParameter(id, options): this

Defined in: definition-builder.ts:143

string

"uniform" | "specialization" | "graph"

string

string

string

number

readonly string[]

this


execution(contract): this

Defined in: definition-builder.ts:194

MaterialExecutionContract

this


floatParameter(id, options): this

Defined in: definition-builder.ts:102

string

"uniform" | "specialization" | "graph"

boolean

number

string

string

number

number

number

number

"none" | "ratio" | "percent" | "px" | "degree" | "us" | "db" | "hz"

this


graph(path, graph): this

Defined in: definition-builder.ts:181

string

MaterialGraph

this


parameter(parameter): this

Defined in: definition-builder.ts:97

MaterialParameter

this


port(port): this

Defined in: definition-builder.ts:92

MaterialPort

this


resourceSlot(resource): this

Defined in: definition-builder.ts:176

MaterialResourceSlot

this


splitPolicy(policy): this

Defined in: definition-builder.ts:199

"copy" | "reset" | "reject"

this


trustedImplementation(implementation): this

Defined in: definition-builder.ts:189

Adds trusted executable code. The package still requires explicit host authorization.

{[key: string]: JsonValue; abi: "aelion-material-shader/1"; backend: "webgpu"; entryPoint: string; module: string; type: "shader"; } | {[key: string]: JsonValue | undefined; abi: "aelion-material-webgl/1"; backend: "webgl2"; entryPoint: string; fragmentModule: string; type: "shader"; vertexModule?: string; } | {[key: string]: JsonValue; abi: "aelion-material-wasm/1"; module: string; type: "wasm"; }

this