MaterialDefinitionBuilder
此内容尚不支持你的语言。
Defined in: definition-builder.ts:75
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new MaterialDefinitionBuilder(
options):MaterialDefinitionBuilder
Defined in: definition-builder.ts:87
Parameters
Section titled “Parameters”options
Section titled “options”MaterialDefinitionBuilderOptions
Returns
Section titled “Returns”MaterialDefinitionBuilder
Methods
Section titled “Methods”build()
Section titled “build()”build():
AuthoredMaterial
Defined in: definition-builder.ts:204
Returns
Section titled “Returns”bundledResource()
Section titled “bundledResource()”bundledResource(
resource):this
Defined in: definition-builder.ts:171
Parameters
Section titled “Parameters”resource
Section titled “resource”Returns
Section titled “Returns”this
enumParameter()
Section titled “enumParameter()”enumParameter(
id,options):this
Defined in: definition-builder.ts:143
Parameters
Section titled “Parameters”string
options
Section titled “options”affects?
Section titled “affects?”"uniform" | "specialization" | "graph"
default
Section titled “default”string
group?
Section titled “group?”string
label?
Section titled “label?”string
order?
Section titled “order?”number
values
Section titled “values”readonly string[]
Returns
Section titled “Returns”this
execution()
Section titled “execution()”execution(
contract):this
Defined in: definition-builder.ts:194
Parameters
Section titled “Parameters”contract
Section titled “contract”Returns
Section titled “Returns”this
floatParameter()
Section titled “floatParameter()”floatParameter(
id,options):this
Defined in: definition-builder.ts:102
Parameters
Section titled “Parameters”string
options
Section titled “options”affects?
Section titled “affects?”"uniform" | "specialization" | "graph"
animatable?
Section titled “animatable?”boolean
default
Section titled “default”number
group?
Section titled “group?”string
label?
Section titled “label?”string
number
number
order?
Section titled “order?”number
number
"none" | "ratio" | "percent" | "px" | "degree" | "us" | "db" | "hz"
Returns
Section titled “Returns”this
graph()
Section titled “graph()”graph(
path,graph):this
Defined in: definition-builder.ts:181
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”this
parameter()
Section titled “parameter()”parameter(
parameter):this
Defined in: definition-builder.ts:97
Parameters
Section titled “Parameters”parameter
Section titled “parameter”Returns
Section titled “Returns”this
port()
Section titled “port()”port(
port):this
Defined in: definition-builder.ts:92
Parameters
Section titled “Parameters”Returns
Section titled “Returns”this
resourceSlot()
Section titled “resourceSlot()”resourceSlot(
resource):this
Defined in: definition-builder.ts:176
Parameters
Section titled “Parameters”resource
Section titled “resource”Returns
Section titled “Returns”this
splitPolicy()
Section titled “splitPolicy()”splitPolicy(
policy):this
Defined in: definition-builder.ts:199
Parameters
Section titled “Parameters”policy
Section titled “policy”"copy" | "reset" | "reject"
Returns
Section titled “Returns”this
trustedImplementation()
Section titled “trustedImplementation()”trustedImplementation(
implementation):this
Defined in: definition-builder.ts:189
Adds trusted executable code. The package still requires explicit host authorization.
Parameters
Section titled “Parameters”implementation
Section titled “implementation”{[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"; }
Returns
Section titled “Returns”this