Manifest v3, v4 and v5
Behavior and constraints
| Surface | v3 | v4 | v5 |
|---|---|---|---|
| Legacy resources/Programs/commands and composition v1 | Applicable combinations | Supported | Supported |
| Explicit Scene categories and sceneBindings | New fields rejected | Scene ABI v2 | Scene ABI v2 |
| materials/customData/customBindings/materialTable | Unsupported | Unsupported | ABI v1 |
| sampler2DShadow comparison v1 | Unsupported | Unsupported | Supported graphics boundaries only |
| Main Schema bundle / completion | Legacy v1 | Legacy v1 | v2 |
| Tutorial role | Compatibility | Compatibility | Primary |
Manifest 3/4/5 differs from author version text, Scene ABI, Provider and protocol versions. Do not paste v5 fields into v3/v4. Select the new Schema, migrate explicit routes and invocation/resource ownership, then rerun Loader/graph/interface and required runtime checks.
The following independently generated v3/v4 definitions retain actual version differences. A shared definition in v3 does not imply that its manifest/command entry can reference it; inspect root reachability and conditional rules.
Pinned Catalog.supportedFormats.manifest retains historical [3,4], while the v5 Schema, Loader and tested course explicitly accept v5. The older guide's 11 inputs and early temporal runtimeReady=false likewise retain their historical identities. Current registration of 23 inputs, later integration and actual runtime observations are separate facts rather than a blanket new release claim.
Manifest v3
manifest · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
author | optional here | type="string" |
description | optional here | type="string" |
id | required | $ref="#/$defs/identifier" |
manifestVersion | required | const=3 |
name | required | $ref="#/$defs/nonEmptyString" |
options | required | type="array"; items=#/$defs/option |
passes | optional here | type="array"; items=#/$defs/pass |
programs | optional here | type="array"; items=#/$defs/program |
resources | required | type="array"; items=#/$defs/resource |
settings | optional here | $ref="#/$defs/relativePath" |
shaderRoot | optional here | $ref="#/$defs/relativePath" |
version | required | $ref="#/$defs/nonEmptyString" |
Full structural rule: #/$defs/manifest
{
"additionalProperties": false,
"properties": {
"author": {
"type": "string"
},
"description": {
"type": "string"
},
"id": {
"$ref": "#/$defs/identifier"
},
"manifestVersion": {
"const": 3
},
"name": {
"$ref": "#/$defs/nonEmptyString"
},
"options": {
"items": {
"$ref": "#/$defs/option"
},
"type": "array"
},
"passes": {
"items": {
"$ref": "#/$defs/pass"
},
"type": "array"
},
"programs": {
"items": {
"$ref": "#/$defs/program"
},
"type": "array"
},
"resources": {
"items": {
"$ref": "#/$defs/resource"
},
"type": "array"
},
"settings": {
"$ref": "#/$defs/relativePath"
},
"shaderRoot": {
"$ref": "#/$defs/relativePath"
},
"version": {
"$ref": "#/$defs/nonEmptyString"
}
},
"required": [
"manifestVersion",
"id",
"name",
"version",
"options",
"resources"
],
"type": "object"
}sourceManifest · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
author | optional here | type="string" |
description | optional here | type="string" |
fragments | required | type="array"; minItems=1; uniqueItems=true; items=#/$defs/relativePath |
id | required | $ref="#/$defs/identifier" |
manifestVersion | required | const=3 |
name | required | $ref="#/$defs/nonEmptyString" |
settings | optional here | $ref="#/$defs/relativePath" |
shaderRoot | optional here | $ref="#/$defs/relativePath" |
sourceFormatVersion | required | const=1 |
version | required | $ref="#/$defs/nonEmptyString" |
Full structural rule: #/$defs/sourceManifest
{
"additionalProperties": false,
"properties": {
"author": {
"type": "string"
},
"description": {
"type": "string"
},
"fragments": {
"items": {
"$ref": "#/$defs/relativePath"
},
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"id": {
"$ref": "#/$defs/identifier"
},
"manifestVersion": {
"const": 3
},
"name": {
"$ref": "#/$defs/nonEmptyString"
},
"settings": {
"$ref": "#/$defs/relativePath"
},
"shaderRoot": {
"$ref": "#/$defs/relativePath"
},
"sourceFormatVersion": {
"const": 1
},
"version": {
"$ref": "#/$defs/nonEmptyString"
}
},
"required": [
"sourceFormatVersion",
"manifestVersion",
"id",
"name",
"version",
"fragments"
],
"type": "object"
}fragment · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
options | optional here | type="array"; items=#/$defs/option |
passes | optional here | type="array"; items=#/$defs/pass |
programs | optional here | type="array"; items=#/$defs/program |
resources | optional here | type="array"; items=#/$defs/resource |
Full structural rule: #/$defs/fragment
{
"additionalProperties": false,
"properties": {
"options": {
"items": {
"$ref": "#/$defs/option"
},
"type": "array"
},
"passes": {
"items": {
"$ref": "#/$defs/pass"
},
"type": "array"
},
"programs": {
"items": {
"$ref": "#/$defs/program"
},
"type": "array"
},
"resources": {
"items": {
"$ref": "#/$defs/resource"
},
"type": "array"
}
},
"type": "object"
}identifier · v3
type="string"; pattern="^[a-z0-9][a-z0-9_.-]*:[a-z0-9][a-z0-9_./-]*$"
Full structural rule: #/$defs/identifier
{
"pattern": "^[a-z0-9][a-z0-9_.-]*:[a-z0-9][a-z0-9_./-]*$",
"type": "string"
}relativePath · v3
type="string"; minLength=1
Full structural rule: #/$defs/relativePath
{
"minLength": 1,
"type": "string"
}nonEmptyString · v3
type="string"; minLength=1
Full structural rule: #/$defs/nonEmptyString
{
"minLength": 1,
"type": "string"
}positiveVersion · v3
type="integer"; minimum=1
Full structural rule: #/$defs/positiveVersion
{
"minimum": 1,
"type": "integer"
}option · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
allowed | optional here | type="array"; minItems=1; uniqueItems=true; items=#/$defs/optionScalar |
default | required | $ref="#/$defs/optionScalar" |
description | optional here | type="string" |
id | required | $ref="#/$defs/identifier" |
impact | required | type="array"; uniqueItems=true |
max | optional here | type="number" |
min | optional here | type="number" |
name | optional here | type="string" |
type | required | enum=["boolean","integer","number","string"] |
Full structural rule: #/$defs/option
{
"additionalProperties": false,
"allOf": [
{
"if": {
"properties": {
"type": {
"const": "boolean"
}
},
"required": [
"type"
]
},
"then": {
"properties": {
"allowed": {
"items": {
"type": "boolean"
},
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"default": {
"type": "boolean"
},
"max": {
"not": {}
},
"min": {
"not": {}
}
}
}
},
{
"if": {
"properties": {
"type": {
"const": "integer"
}
},
"required": [
"type"
]
},
"then": {
"properties": {
"allowed": {
"items": {
"type": "integer"
},
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"default": {
"type": "integer"
},
"max": {
"type": "integer"
},
"min": {
"type": "integer"
}
}
}
},
{
"if": {
"properties": {
"type": {
"const": "number"
}
},
"required": [
"type"
]
},
"then": {
"properties": {
"allowed": {
"items": {
"type": "number"
},
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"default": {
"type": "number"
},
"max": {
"type": "number"
},
"min": {
"type": "number"
}
}
}
},
{
"if": {
"properties": {
"type": {
"const": "string"
}
},
"required": [
"type"
]
},
"then": {
"properties": {
"allowed": {
"items": {
"type": "string"
},
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"default": {
"type": "string"
},
"max": {
"not": {}
},
"min": {
"not": {}
}
}
}
},
{
"not": {
"required": [
"allowed",
"min"
]
}
},
{
"not": {
"required": [
"allowed",
"max"
]
}
},
{
"oneOf": [
{
"required": [
"min",
"max"
]
},
{
"not": {
"anyOf": [
{
"required": [
"min"
]
},
{
"required": [
"max"
]
}
]
}
}
]
}
],
"properties": {
"allowed": {
"items": {
"$ref": "#/$defs/optionScalar"
},
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"default": {
"$ref": "#/$defs/optionScalar"
},
"description": {
"type": "string"
},
"id": {
"$ref": "#/$defs/identifier"
},
"impact": {
"items": {
"enum": [
"uniform",
"program",
"pipeline",
"resources"
]
},
"type": "array",
"uniqueItems": true
},
"max": {
"type": "number"
},
"min": {
"type": "number"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"boolean",
"integer",
"number",
"string"
]
}
},
"required": [
"id",
"type",
"default",
"impact"
],
"type": "object"
}optionScalar · v3
type=["boolean","integer","number","string"]
Full structural rule: #/$defs/optionScalar
{
"type": [
"boolean",
"integer",
"number",
"string"
]
}condition · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
equals | optional here | $ref="#/$defs/optionScalar" |
oneOf | optional here | type="array"; minItems=1; uniqueItems=true; items=#/$defs/optionScalar |
option | required | $ref="#/$defs/identifier" |
Full structural rule: #/$defs/condition
{
"additionalProperties": false,
"allOf": [
{
"oneOf": [
{
"required": [
"equals"
]
},
{
"required": [
"oneOf"
]
}
]
}
],
"properties": {
"equals": {
"$ref": "#/$defs/optionScalar"
},
"oneOf": {
"items": {
"$ref": "#/$defs/optionScalar"
},
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"option": {
"$ref": "#/$defs/identifier"
}
},
"required": [
"option"
],
"type": "object"
}resource · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
oneOf[0].content | optional here | $ref="#/$defs/content" |
oneOf[0].format | optional here | $ref="#/$defs/nonEmptyString" |
oneOf[0].historyCapacity | optional here | type="integer"; minimum=2 |
oneOf[0].id | required | $ref="#/$defs/identifier" |
oneOf[0].kind | required | enum=["texture2D","textureCube"] |
oneOf[0].lifetime | required | oneOf: 2 |
oneOf[0].sampling | optional here | $ref="#/$defs/sampling" |
oneOf[0].size | optional here | $ref="#/$defs/size" |
oneOf[1].byteSize | required | type="integer"; minimum=1 |
oneOf[1].content | optional here | $ref="#/$defs/content" |
oneOf[1].id | required | $ref="#/$defs/identifier" |
oneOf[1].kind | required | const="buffer" |
oneOf[1].lifetime | required | oneOf: 2 |
oneOf[1].usage | optional here | enum=["staticDraw","dynamicDraw","streamDraw"] |
Full structural rule: #/$defs/resource
{
"oneOf": [
{
"additionalProperties": false,
"properties": {
"content": {
"$ref": "#/$defs/content"
},
"format": {
"$ref": "#/$defs/nonEmptyString"
},
"historyCapacity": {
"minimum": 2,
"type": "integer"
},
"id": {
"$ref": "#/$defs/identifier"
},
"kind": {
"enum": [
"texture2D",
"textureCube"
]
},
"lifetime": {
"oneOf": [
{
"enum": [
"persistent",
"frame",
"transient",
"history",
"external"
]
},
{
"$ref": "#/$defs/historyLifetime"
}
]
},
"sampling": {
"$ref": "#/$defs/sampling"
},
"size": {
"$ref": "#/$defs/size"
}
},
"required": [
"id",
"kind",
"lifetime"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"byteSize": {
"minimum": 1,
"type": "integer"
},
"content": {
"$ref": "#/$defs/content"
},
"id": {
"$ref": "#/$defs/identifier"
},
"kind": {
"const": "buffer"
},
"lifetime": {
"oneOf": [
{
"enum": [
"persistent",
"frame",
"transient",
"history",
"external"
]
},
{
"$ref": "#/$defs/historyLifetime"
}
]
},
"usage": {
"enum": [
"staticDraw",
"dynamicDraw",
"streamDraw"
]
}
},
"required": [
"id",
"kind",
"lifetime",
"byteSize"
],
"type": "object"
}
]
}content · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
oneOf[1].type | required | const="undefined" |
oneOf[2].type | required | const="external" |
oneOf[3].type | required | const="clear" |
oneOf[3].value | required | oneOf: 2 |
oneOf[4].encoding | optional here | enum=["image","raw"] |
oneOf[4].faces | optional here | type="object"; additionalProperties=false |
oneOf[4].faces.negativeX | required | $ref="#/$defs/relativePath" |
oneOf[4].faces.negativeY | required | $ref="#/$defs/relativePath" |
oneOf[4].faces.negativeZ | required | $ref="#/$defs/relativePath" |
oneOf[4].faces.positiveX | required | $ref="#/$defs/relativePath" |
oneOf[4].faces.positiveY | required | $ref="#/$defs/relativePath" |
oneOf[4].faces.positiveZ | required | $ref="#/$defs/relativePath" |
oneOf[4].path | optional here | $ref="#/$defs/relativePath" |
oneOf[4].type | required | const="asset" |
oneOf[5].generator | required | $ref="#/$defs/identifier" |
oneOf[5].type | required | const="generated" |
oneOf[5].version | required | $ref="#/$defs/positiveVersion" |
oneOf[6].service | required | $ref="#/$defs/identifier" |
oneOf[6].type | required | const="service" |
oneOf[6].version | required | $ref="#/$defs/positiveVersion" |
Full structural rule: #/$defs/content
{
"oneOf": [
{
"enum": [
"undefined",
"external"
]
},
{
"additionalProperties": false,
"properties": {
"type": {
"const": "undefined"
}
},
"required": [
"type"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"type": {
"const": "external"
}
},
"required": [
"type"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"type": {
"const": "clear"
},
"value": {
"oneOf": [
{
"items": {
"type": "number"
},
"maxItems": 1,
"minItems": 1,
"type": "array"
},
{
"items": {
"type": "number"
},
"maxItems": 4,
"minItems": 4,
"type": "array"
}
]
}
},
"required": [
"type",
"value"
],
"type": "object"
},
{
"additionalProperties": false,
"allOf": [
{
"oneOf": [
{
"required": [
"path"
]
},
{
"required": [
"faces"
]
}
]
}
],
"properties": {
"encoding": {
"enum": [
"image",
"raw"
]
},
"faces": {
"additionalProperties": false,
"properties": {
"negativeX": {
"$ref": "#/$defs/relativePath"
},
"negativeY": {
"$ref": "#/$defs/relativePath"
},
"negativeZ": {
"$ref": "#/$defs/relativePath"
},
"positiveX": {
"$ref": "#/$defs/relativePath"
},
"positiveY": {
"$ref": "#/$defs/relativePath"
},
"positiveZ": {
"$ref": "#/$defs/relativePath"
}
},
"required": [
"positiveX",
"negativeX",
"positiveY",
"negativeY",
"positiveZ",
"negativeZ"
],
"type": "object"
},
"path": {
"$ref": "#/$defs/relativePath"
},
"type": {
"const": "asset"
}
},
"required": [
"type"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"generator": {
"$ref": "#/$defs/identifier"
},
"type": {
"const": "generated"
},
"version": {
"$ref": "#/$defs/positiveVersion"
}
},
"required": [
"type",
"generator",
"version"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"service": {
"$ref": "#/$defs/identifier"
},
"type": {
"const": "service"
},
"version": {
"$ref": "#/$defs/positiveVersion"
}
},
"required": [
"type",
"service",
"version"
],
"type": "object"
}
]
}size · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
height | optional here | type="integer"; minimum=1 |
mode | required | enum=["absolute","viewport","output"] |
scale | optional here | type="array"; minItems=2; maxItems=2 |
width | optional here | type="integer"; minimum=1 |
Full structural rule: #/$defs/size
{
"additionalProperties": false,
"allOf": [
{
"if": {
"properties": {
"mode": {
"const": "absolute"
}
},
"required": [
"mode"
]
},
"then": {
"allOf": [
{
"not": {
"anyOf": [
{
"required": [
"scale"
]
}
]
}
}
],
"required": [
"width",
"height"
]
}
},
{
"if": {
"properties": {
"mode": {
"enum": [
"viewport",
"output"
]
}
}
},
"then": {
"not": {
"anyOf": [
{
"required": [
"width"
]
},
{
"required": [
"height"
]
}
]
}
}
}
],
"properties": {
"height": {
"minimum": 1,
"type": "integer"
},
"mode": {
"enum": [
"absolute",
"viewport",
"output"
]
},
"scale": {
"items": {
"exclusiveMinimum": 0,
"type": "number"
},
"maxItems": 2,
"minItems": 2,
"type": "array"
},
"width": {
"minimum": 1,
"type": "integer"
}
},
"required": [
"mode"
],
"type": "object"
}sampling · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
magFilter | optional here | enum=["nearest","linear"] |
minFilter | optional here | enum=["nearest","linear"] |
mipLevels | optional here | type="integer"; minimum=1 |
wrapS | optional here | enum=["repeat","clampToEdge","mirroredRepeat"] |
wrapT | optional here | enum=["repeat","clampToEdge","mirroredRepeat"] |
Full structural rule: #/$defs/sampling
{
"additionalProperties": false,
"properties": {
"magFilter": {
"enum": [
"nearest",
"linear"
]
},
"minFilter": {
"enum": [
"nearest",
"linear"
]
},
"mipLevels": {
"minimum": 1,
"type": "integer"
},
"wrapS": {
"enum": [
"repeat",
"clampToEdge",
"mirroredRepeat"
]
},
"wrapT": {
"enum": [
"repeat",
"clampToEdge",
"mirroredRepeat"
]
}
},
"type": "object"
}historyLifetime · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
capacity | required | type="integer"; minimum=2 |
kind | required | const="history" |
Full structural rule: #/$defs/historyLifetime
{
"additionalProperties": false,
"properties": {
"capacity": {
"minimum": 2,
"type": "integer"
},
"kind": {
"const": "history"
}
},
"required": [
"kind",
"capacity"
],
"type": "object"
}resourceView · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
framesAgo | optional here | type="integer"; minimum=1 |
resource | required | $ref="#/$defs/identifier" |
view | optional here | enum=["dawnlight:direct","dawnlight:history/current","dawnlight:history/previous","dawnlight:shadow/consumer","dawnlight:shadow/producer"] |
Full structural rule: #/$defs/resourceView
{
"additionalProperties": false,
"allOf": [
{
"if": {
"properties": {
"view": {
"const": "dawnlight:history/previous"
}
},
"required": [
"view"
]
},
"then": {
"required": [
"framesAgo"
]
}
},
{
"if": {
"not": {
"properties": {
"view": {
"const": "dawnlight:history/previous"
}
},
"required": [
"view"
]
}
},
"then": {
"not": {
"anyOf": [
{
"required": [
"framesAgo"
]
}
]
}
}
}
],
"properties": {
"framesAgo": {
"minimum": 1,
"type": "integer"
},
"resource": {
"$ref": "#/$defs/identifier"
},
"view": {
"enum": [
"dawnlight:direct",
"dawnlight:history/current",
"dawnlight:history/previous",
"dawnlight:shadow/consumer",
"dawnlight:shadow/producer"
]
}
},
"required": [
"resource"
],
"type": "object"
}program · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
bindings | optional here | — |
compileMode | optional here | enum=["legacyCustom","officialCompatible","manifestDriven"] |
compute | optional here | $ref="#/$defs/relativePath" |
defines | optional here | type="object"; additionalProperties={"$ref":"#/$defs/defineValue"} |
drawBuffers | optional here | — |
engineDrawState | optional here | — |
fragment | optional here | $ref="#/$defs/relativePath" |
id | required | $ref="#/$defs/identifier" |
kind | required | enum=["graphics","compute"] |
state | optional here | — |
targets | optional here | — |
variants | optional here | type="array"; items=#/$defs/variant |
vertex | optional here | $ref="#/$defs/relativePath" |
Full structural rule: #/$defs/program
{
"additionalProperties": false,
"allOf": [
{
"if": {
"properties": {
"kind": {
"const": "graphics"
}
},
"required": [
"kind"
]
},
"then": {
"allOf": [
{
"not": {
"anyOf": [
{
"required": [
"compute"
]
}
]
}
}
],
"required": [
"vertex",
"fragment"
]
}
},
{
"if": {
"properties": {
"kind": {
"const": "compute"
}
},
"required": [
"kind"
]
},
"then": {
"allOf": [
{
"not": {
"anyOf": [
{
"required": [
"vertex"
]
},
{
"required": [
"fragment"
]
},
{
"required": [
"compileMode"
]
}
]
}
}
],
"required": [
"compute"
]
}
}
],
"properties": {
"bindings": {
"not": {}
},
"compileMode": {
"enum": [
"legacyCustom",
"officialCompatible",
"manifestDriven"
]
},
"compute": {
"$ref": "#/$defs/relativePath"
},
"defines": {
"additionalProperties": {
"$ref": "#/$defs/defineValue"
},
"propertyNames": {
"$ref": "#/$defs/glslIdentifier"
},
"type": "object"
},
"drawBuffers": {
"not": {}
},
"engineDrawState": {
"not": {}
},
"fragment": {
"$ref": "#/$defs/relativePath"
},
"id": {
"$ref": "#/$defs/identifier"
},
"kind": {
"enum": [
"graphics",
"compute"
]
},
"state": {
"not": {}
},
"targets": {
"not": {}
},
"variants": {
"items": {
"$ref": "#/$defs/variant"
},
"type": "array"
},
"vertex": {
"$ref": "#/$defs/relativePath"
}
},
"required": [
"id",
"kind"
],
"type": "object"
}variant · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
defines | required | type="object"; additionalProperties={"$ref":"#/$defs/defineValue"} |
id | required | $ref="#/$defs/identifier" |
Full structural rule: #/$defs/variant
{
"additionalProperties": false,
"properties": {
"defines": {
"additionalProperties": {
"$ref": "#/$defs/defineValue"
},
"propertyNames": {
"$ref": "#/$defs/glslIdentifier"
},
"type": "object"
},
"id": {
"$ref": "#/$defs/identifier"
}
},
"required": [
"id",
"defines"
],
"type": "object"
}defineValue · v3
oneOf: 2
Full structural rule: #/$defs/defineValue
{
"oneOf": [
{
"$ref": "#/$defs/nullableDefineValue"
},
{
"$ref": "#/$defs/defineBinding"
}
]
}defineBinding · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
capability | optional here | $ref="#/$defs/identifier" |
map | optional here | type="object"; additionalProperties={"$ref":"#/$defs/nullableDefineValue"} |
option | optional here | $ref="#/$defs/identifier" |
Full structural rule: #/$defs/defineBinding
{
"additionalProperties": false,
"allOf": [
{
"oneOf": [
{
"required": [
"option"
]
},
{
"required": [
"capability"
]
}
]
}
],
"properties": {
"capability": {
"$ref": "#/$defs/identifier"
},
"map": {
"additionalProperties": {
"$ref": "#/$defs/nullableDefineValue"
},
"type": "object"
},
"option": {
"$ref": "#/$defs/identifier"
}
},
"type": "object"
}nullableDefineValue · v3
type=["string","boolean","integer","number","null"]
Full structural rule: #/$defs/nullableDefineValue
{
"type": [
"string",
"boolean",
"integer",
"number",
"null"
]
}glslIdentifier · v3
type="string"; pattern="^[A-Za-z_][A-Za-z0-9_]*$"
Full structural rule: #/$defs/glslIdentifier
{
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
"type": "string"
}pass · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
commands | optional here | type="array"; items=#/$defs/command |
enabled | required | type="boolean" |
enabledWhen | optional here | type="array"; items=#/$defs/condition |
host | optional here | $ref="#/$defs/host" |
id | required | $ref="#/$defs/identifier" |
inputs | optional here | type="array" |
outputs | optional here | type="array" |
programs | optional here | type="array"; uniqueItems=true; items=#/$defs/identifier |
services | optional here | type="array"; items=#/$defs/service |
stage | optional here | $ref="#/$defs/stage" |
Full structural rule: #/$defs/pass
{
"additionalProperties": false,
"allOf": [
{
"not": {
"required": [
"stage",
"host"
]
}
}
],
"properties": {
"commands": {
"items": {
"$ref": "#/$defs/command"
},
"type": "array"
},
"enabled": {
"type": "boolean"
},
"enabledWhen": {
"items": {
"$ref": "#/$defs/condition"
},
"type": "array"
},
"host": {
"$ref": "#/$defs/host"
},
"id": {
"$ref": "#/$defs/identifier"
},
"inputs": {
"items": {
"oneOf": [
{
"$ref": "#/$defs/identifier"
},
{
"$ref": "#/$defs/resourceView"
}
]
},
"type": "array"
},
"outputs": {
"items": {
"oneOf": [
{
"$ref": "#/$defs/identifier"
},
{
"$ref": "#/$defs/resourceView"
}
]
},
"type": "array"
},
"programs": {
"items": {
"$ref": "#/$defs/identifier"
},
"type": "array",
"uniqueItems": true
},
"services": {
"items": {
"$ref": "#/$defs/service"
},
"type": "array"
},
"stage": {
"$ref": "#/$defs/stage"
}
},
"required": [
"id",
"enabled"
],
"type": "object"
}stage · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
ordering | optional here | $ref="#/$defs/ordering" |
phase | required | enum=["modelShadow","framePrepare","shadow","opaque","transparent","cloudReflection","shaftPrepare","shaftSun","cloud","particles","afterDraw","afterFinal","screenOutput"] |
target | required | enum=["world","afterDraw"] |
template | required | $ref="#/$defs/identifier" |
version | required | $ref="#/$defs/positiveVersion" |
Full structural rule: #/$defs/stage
{
"additionalProperties": false,
"properties": {
"ordering": {
"$ref": "#/$defs/ordering"
},
"phase": {
"enum": [
"modelShadow",
"framePrepare",
"shadow",
"opaque",
"transparent",
"cloudReflection",
"shaftPrepare",
"shaftSun",
"cloud",
"particles",
"afterDraw",
"afterFinal",
"screenOutput"
]
},
"target": {
"enum": [
"world",
"afterDraw"
]
},
"template": {
"$ref": "#/$defs/identifier"
},
"version": {
"$ref": "#/$defs/positiveVersion"
}
},
"required": [
"template",
"version",
"target",
"phase"
],
"type": "object"
}host · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
ordering | optional here | $ref="#/$defs/ordering" |
phase | required | enum=["modelShadow","framePrepare","shadow","opaque","transparent","cloudReflection","shaftPrepare","shaftSun","cloud","particles","afterDraw","afterFinal","screenOutput"] |
target | required | enum=["world","afterDraw"] |
Full structural rule: #/$defs/host
{
"additionalProperties": false,
"properties": {
"ordering": {
"$ref": "#/$defs/ordering"
},
"phase": {
"enum": [
"modelShadow",
"framePrepare",
"shadow",
"opaque",
"transparent",
"cloudReflection",
"shaftPrepare",
"shaftSun",
"cloud",
"particles",
"afterDraw",
"afterFinal",
"screenOutput"
]
},
"target": {
"enum": [
"world",
"afterDraw"
]
}
},
"required": [
"target",
"phase"
],
"type": "object"
}ordering · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
after | optional here | type="array"; uniqueItems=true; items=#/$defs/identifier |
before | optional here | type="array"; uniqueItems=true; items=#/$defs/identifier |
requires | optional here | type="array"; uniqueItems=true; items=#/$defs/identifier |
Full structural rule: #/$defs/ordering
{
"additionalProperties": false,
"properties": {
"after": {
"items": {
"$ref": "#/$defs/identifier"
},
"type": "array",
"uniqueItems": true
},
"before": {
"items": {
"$ref": "#/$defs/identifier"
},
"type": "array",
"uniqueItems": true
},
"requires": {
"items": {
"$ref": "#/$defs/identifier"
},
"type": "array",
"uniqueItems": true
}
},
"type": "object"
}service · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
enabledWhen | optional here | type="array"; items=#/$defs/condition |
id | required | $ref="#/$defs/identifier" |
mode | optional here | enum=["required","optional"] |
unavailable | optional here | enum=["disablePass"] |
version | required | $ref="#/$defs/positiveVersion" |
Full structural rule: #/$defs/service
{
"additionalProperties": false,
"properties": {
"enabledWhen": {
"items": {
"$ref": "#/$defs/condition"
},
"type": "array"
},
"id": {
"$ref": "#/$defs/identifier"
},
"mode": {
"enum": [
"required",
"optional"
]
},
"unavailable": {
"enum": [
"disablePass"
]
},
"version": {
"$ref": "#/$defs/positiveVersion"
}
},
"required": [
"id",
"version"
],
"type": "object"
}command · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
bindings | optional here | type="array"; items=#/$defs/binding |
clear | optional here | $ref="#/$defs/clear" |
copy | optional here | $ref="#/$defs/copy" |
dispatch | optional here | $ref="#/$defs/dispatch" |
drawBuffers | optional here | — |
program | optional here | $ref="#/$defs/identifier" |
provider | optional here | $ref="#/$defs/provider" |
resource | optional here | $ref="#/$defs/identifier" |
semantics | optional here | type="array"; items=#/$defs/semantic |
state | optional here | $ref="#/$defs/state" |
targets | optional here | $ref="#/$defs/targets" |
type | required | enum=["fullscreen","compute","copy","clear","present","engineDraw","historyCommit"] |
viewport | optional here | $ref="#/$defs/viewport" |
Full structural rule: #/$defs/command
{
"additionalProperties": false,
"allOf": [
{
"if": {
"properties": {
"type": {
"const": "fullscreen"
}
},
"required": [
"type"
]
},
"then": {
"required": [
"program",
"targets"
]
}
},
{
"if": {
"properties": {
"type": {
"const": "compute"
}
},
"required": [
"type"
]
},
"then": {
"required": [
"program",
"dispatch"
]
}
},
{
"if": {
"properties": {
"type": {
"const": "copy"
}
},
"required": [
"type"
]
},
"then": {
"required": [
"copy"
]
}
},
{
"if": {
"properties": {
"type": {
"const": "clear"
}
},
"required": [
"type"
]
},
"then": {
"required": [
"clear"
]
}
},
{
"if": {
"properties": {
"type": {
"const": "present"
}
},
"required": [
"type"
]
},
"then": {
"required": [
"program"
]
}
},
{
"if": {
"properties": {
"type": {
"const": "historyCommit"
}
},
"required": [
"type"
]
},
"then": {
"required": [
"resource"
]
}
},
{
"if": {
"not": {
"properties": {
"type": {
"const": "copy"
}
},
"required": [
"type"
]
}
},
"then": {
"not": {
"anyOf": [
{
"required": [
"copy"
]
}
]
}
}
},
{
"if": {
"not": {
"properties": {
"type": {
"const": "historyCommit"
}
},
"required": [
"type"
]
}
},
"then": {
"not": {
"anyOf": [
{
"required": [
"resource"
]
}
]
}
}
},
{
"if": {
"properties": {
"type": {
"const": "compute"
}
},
"required": [
"type"
]
},
"then": {
"not": {
"anyOf": [
{
"required": [
"viewport"
]
},
{
"required": [
"clear"
]
},
{
"required": [
"targets"
]
},
{
"required": [
"state"
]
}
]
}
}
},
{
"if": {
"properties": {
"type": {
"const": "present"
}
},
"required": [
"type"
]
},
"then": {
"not": {
"anyOf": [
{
"required": [
"targets"
]
},
{
"required": [
"drawBuffers"
]
}
]
}
}
},
{
"if": {
"properties": {
"type": {
"const": "copy"
}
},
"required": [
"type"
]
},
"then": {
"not": {
"anyOf": [
{
"required": [
"program"
]
},
{
"required": [
"bindings"
]
},
{
"required": [
"semantics"
]
},
{
"required": [
"sceneBindings"
]
},
{
"required": [
"targets"
]
},
{
"required": [
"drawBuffers"
]
},
{
"required": [
"state"
]
},
{
"required": [
"viewport"
]
},
{
"required": [
"clear"
]
},
{
"required": [
"dispatch"
]
}
]
}
}
},
{
"if": {
"properties": {
"type": {
"const": "clear"
}
},
"required": [
"type"
]
},
"then": {
"not": {
"anyOf": [
{
"required": [
"drawBuffers"
]
}
]
}
}
},
{
"if": {
"properties": {
"type": {
"const": "historyCommit"
}
},
"required": [
"type"
]
},
"then": {
"not": {
"anyOf": [
{
"required": [
"program"
]
},
{
"required": [
"bindings"
]
},
{
"required": [
"semantics"
]
},
{
"required": [
"sceneBindings"
]
},
{
"required": [
"targets"
]
},
{
"required": [
"drawBuffers"
]
},
{
"required": [
"state"
]
},
{
"required": [
"viewport"
]
},
{
"required": [
"clear"
]
},
{
"required": [
"dispatch"
]
},
{
"required": [
"copy"
]
}
]
}
}
},
{
"if": {
"properties": {
"type": {
"const": "engineDraw"
}
},
"required": [
"type"
]
},
"then": {
"required": [
"provider"
]
}
},
{
"if": {
"not": {
"properties": {
"type": {
"const": "engineDraw"
}
},
"required": [
"type"
]
}
},
"then": {
"not": {
"anyOf": [
{
"required": [
"provider"
]
}
]
}
}
}
],
"properties": {
"bindings": {
"items": {
"$ref": "#/$defs/binding"
},
"type": "array"
},
"clear": {
"$ref": "#/$defs/clear"
},
"copy": {
"$ref": "#/$defs/copy"
},
"dispatch": {
"$ref": "#/$defs/dispatch"
},
"drawBuffers": {
"not": {}
},
"program": {
"$ref": "#/$defs/identifier"
},
"provider": {
"$ref": "#/$defs/provider"
},
"resource": {
"$ref": "#/$defs/identifier"
},
"semantics": {
"items": {
"$ref": "#/$defs/semantic"
},
"type": "array"
},
"state": {
"$ref": "#/$defs/state"
},
"targets": {
"$ref": "#/$defs/targets"
},
"type": {
"enum": [
"fullscreen",
"compute",
"copy",
"clear",
"present",
"engineDraw",
"historyCommit"
]
},
"viewport": {
"$ref": "#/$defs/viewport"
}
},
"required": [
"type"
],
"type": "object"
}copy · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
aspects | required | type="array"; minItems=1; uniqueItems=true |
destination | required | oneOf: 2 |
filter | optional here | enum=["nearest","linear"] |
restore | optional here | enum=["none","frame"] |
source | required | oneOf: 2 |
Full structural rule: #/$defs/copy
{
"additionalProperties": false,
"properties": {
"aspects": {
"items": {
"enum": [
"color",
"depth"
]
},
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"destination": {
"oneOf": [
{
"$ref": "#/$defs/identifier"
},
{
"$ref": "#/$defs/resourceView"
}
]
},
"filter": {
"enum": [
"nearest",
"linear"
]
},
"restore": {
"enum": [
"none",
"frame"
]
},
"source": {
"oneOf": [
{
"$ref": "#/$defs/identifier"
},
{
"$ref": "#/$defs/resourceView"
}
]
}
},
"required": [
"source",
"destination",
"aspects"
],
"type": "object"
}clear · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
color | optional here | type="array"; minItems=4; maxItems=4 |
depth | optional here | type="number"; minimum=0; maximum=1 |
stencil | optional here | type="integer"; minimum=0 |
Full structural rule: #/$defs/clear
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"color": {
"items": {
"type": "number"
},
"maxItems": 4,
"minItems": 4,
"type": "array"
},
"depth": {
"maximum": 1,
"minimum": 0,
"type": "number"
},
"stencil": {
"minimum": 0,
"type": "integer"
}
},
"type": "object"
}dispatch · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
barriers | optional here | type="array"; uniqueItems=true |
groups | required | type="array"; minItems=3; maxItems=3 |
Full structural rule: #/$defs/dispatch
{
"additionalProperties": false,
"properties": {
"barriers": {
"items": {
"enum": [
"shaderImageAccess",
"textureFetch",
"textureUpdate",
"shaderStorage",
"bufferUpdate",
"framebuffer"
]
},
"type": "array",
"uniqueItems": true
},
"groups": {
"items": {
"minimum": 1,
"type": "integer"
},
"maxItems": 3,
"minItems": 3,
"type": "array"
}
},
"required": [
"groups"
],
"type": "object"
}viewport · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
restore | required | enum=["none","frame"] |
source | required | enum=["target","frame"] |
synchronizeScissor | optional here | type="boolean" |
Full structural rule: #/$defs/viewport
{
"additionalProperties": false,
"properties": {
"restore": {
"enum": [
"none",
"frame"
]
},
"source": {
"enum": [
"target",
"frame"
]
},
"synchronizeScissor": {
"type": "boolean"
}
},
"required": [
"source",
"restore"
],
"type": "object"
}provider · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
id | required | $ref="#/$defs/identifier" |
version | required | $ref="#/$defs/positiveVersion" |
Full structural rule: #/$defs/provider
{
"additionalProperties": false,
"properties": {
"id": {
"$ref": "#/$defs/identifier"
},
"version": {
"$ref": "#/$defs/positiveVersion"
}
},
"required": [
"id",
"version"
],
"type": "object"
}targets · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
colors | optional here | type="array"; uniqueItems=true; items=#/$defs/colorTarget |
depth | optional here | $ref="#/$defs/depthTarget" |
Full structural rule: #/$defs/targets
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"colors": {
"items": {
"$ref": "#/$defs/colorTarget"
},
"type": "array",
"uniqueItems": true
},
"depth": {
"$ref": "#/$defs/depthTarget"
}
},
"type": "object"
}colorTarget · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
clearValue | optional here | type="array"; minItems=4; maxItems=4 |
framesAgo | optional here | type="integer"; minimum=1 |
loadOp | required | enum=["load","clear","dontCare"] |
location | required | type="integer"; minimum=0 |
resource | required | $ref="#/$defs/identifier" |
storeOp | required | enum=["store","dontCare"] |
view | optional here | enum=["dawnlight:direct","dawnlight:history/current","dawnlight:history/previous","dawnlight:shadow/consumer","dawnlight:shadow/producer"] |
Full structural rule: #/$defs/colorTarget
{
"additionalProperties": false,
"allOf": [
{
"if": {
"properties": {
"loadOp": {
"const": "clear"
}
},
"required": [
"loadOp"
]
},
"then": {
"required": [
"clearValue"
]
}
},
{
"if": {
"not": {
"properties": {
"loadOp": {
"const": "clear"
}
},
"required": [
"loadOp"
]
}
},
"then": {
"not": {
"anyOf": [
{
"required": [
"clearValue"
]
}
]
}
}
}
],
"properties": {
"clearValue": {
"items": {
"type": "number"
},
"maxItems": 4,
"minItems": 4,
"type": "array"
},
"framesAgo": {
"minimum": 1,
"type": "integer"
},
"loadOp": {
"enum": [
"load",
"clear",
"dontCare"
]
},
"location": {
"minimum": 0,
"type": "integer"
},
"resource": {
"$ref": "#/$defs/identifier"
},
"storeOp": {
"enum": [
"store",
"dontCare"
]
},
"view": {
"enum": [
"dawnlight:direct",
"dawnlight:history/current",
"dawnlight:history/previous",
"dawnlight:shadow/consumer",
"dawnlight:shadow/producer"
]
}
},
"required": [
"location",
"resource",
"loadOp",
"storeOp"
],
"type": "object"
}depthTarget · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
clearValue | optional here | type="number"; minimum=0; maximum=1 |
framesAgo | optional here | type="integer"; minimum=1 |
loadOp | required | enum=["load","clear","dontCare"] |
resource | required | $ref="#/$defs/identifier" |
storeOp | required | enum=["store","dontCare"] |
view | optional here | enum=["dawnlight:direct","dawnlight:history/current","dawnlight:history/previous","dawnlight:shadow/consumer","dawnlight:shadow/producer"] |
Full structural rule: #/$defs/depthTarget
{
"additionalProperties": false,
"allOf": [
{
"if": {
"properties": {
"loadOp": {
"const": "clear"
}
},
"required": [
"loadOp"
]
},
"then": {
"required": [
"clearValue"
]
}
},
{
"if": {
"not": {
"properties": {
"loadOp": {
"const": "clear"
}
},
"required": [
"loadOp"
]
}
},
"then": {
"not": {
"anyOf": [
{
"required": [
"clearValue"
]
}
]
}
}
}
],
"properties": {
"clearValue": {
"maximum": 1,
"minimum": 0,
"type": "number"
},
"framesAgo": {
"minimum": 1,
"type": "integer"
},
"loadOp": {
"enum": [
"load",
"clear",
"dontCare"
]
},
"resource": {
"$ref": "#/$defs/identifier"
},
"storeOp": {
"enum": [
"store",
"dontCare"
]
},
"view": {
"enum": [
"dawnlight:direct",
"dawnlight:history/current",
"dawnlight:history/previous",
"dawnlight:shadow/consumer",
"dawnlight:shadow/producer"
]
}
},
"required": [
"resource",
"loadOp",
"storeOp"
],
"type": "object"
}state · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
blend | optional here | enum=["inherit","opaque","alphaBlend","nonPremultiplied"] |
blendTargets | optional here | type="array"; minItems=1; uniqueItems=true |
depth | optional here | enum=["inherit","default","depthWrite","depthTestWriteLess","disabled"] |
rasterizer | optional here | enum=["inherit","cullCounterClockwiseScissor","cullClockwiseScissor","cullNoneScissor"] |
Full structural rule: #/$defs/state
{
"additionalProperties": false,
"properties": {
"blend": {
"enum": [
"inherit",
"opaque",
"alphaBlend",
"nonPremultiplied"
]
},
"blendTargets": {
"items": {
"minimum": 0,
"type": "integer"
},
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"depth": {
"enum": [
"inherit",
"default",
"depthWrite",
"depthTestWriteLess",
"disabled"
]
},
"rasterizer": {
"enum": [
"inherit",
"cullCounterClockwiseScissor",
"cullClockwiseScissor",
"cullNoneScissor"
]
}
},
"type": "object"
}drawBufferLayout · v3
type="array"
Full structural rule: #/$defs/drawBufferLayout
{
"items": {
"oneOf": [
{
"const": "disabled"
},
{
"minimum": 0,
"type": "integer"
}
]
},
"type": "array"
}binding · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
access | optional here | enum=["readOnly","writeOnly","readWrite"] |
binding | required | type="integer"; minimum=0 |
enabledWhen | optional here | type="array"; items=#/$defs/condition |
fallback | optional here | oneOf: 2 |
framesAgo | optional here | type="integer"; minimum=1 |
kind | required | enum=["sampler2D","samplerCube","image2D","uniformBuffer","storageBuffer"] |
resource | required | $ref="#/$defs/identifier" |
symbol | required | $ref="#/$defs/glslIdentifier" |
view | optional here | enum=["dawnlight:direct","dawnlight:history/current","dawnlight:history/previous","dawnlight:shadow/consumer","dawnlight:shadow/producer"] |
Full structural rule: #/$defs/binding
{
"additionalProperties": false,
"allOf": [
{
"if": {
"properties": {
"kind": {
"enum": [
"image2D",
"storageBuffer"
]
}
}
},
"then": {
"required": [
"access"
]
}
},
{
"if": {
"not": {
"properties": {
"kind": {
"enum": [
"image2D",
"storageBuffer"
]
}
}
}
},
"then": {
"not": {
"anyOf": [
{
"required": [
"access"
]
}
]
}
}
},
{
"if": {
"properties": {
"view": {
"const": "dawnlight:history/previous"
}
},
"required": [
"view"
]
},
"then": {
"required": [
"framesAgo"
]
}
},
{
"if": {
"not": {
"properties": {
"view": {
"const": "dawnlight:history/previous"
}
},
"required": [
"view"
]
}
},
"then": {
"not": {
"anyOf": [
{
"required": [
"framesAgo"
]
}
]
}
}
}
],
"properties": {
"access": {
"enum": [
"readOnly",
"writeOnly",
"readWrite"
]
},
"binding": {
"minimum": 0,
"type": "integer"
},
"enabledWhen": {
"items": {
"$ref": "#/$defs/condition"
},
"type": "array"
},
"fallback": {
"oneOf": [
{
"$ref": "#/$defs/identifier"
},
{
"$ref": "#/$defs/resourceView"
}
]
},
"framesAgo": {
"minimum": 1,
"type": "integer"
},
"kind": {
"enum": [
"sampler2D",
"samplerCube",
"image2D",
"uniformBuffer",
"storageBuffer"
]
},
"resource": {
"$ref": "#/$defs/identifier"
},
"symbol": {
"$ref": "#/$defs/glslIdentifier"
},
"view": {
"enum": [
"dawnlight:direct",
"dawnlight:history/current",
"dawnlight:history/previous",
"dawnlight:shadow/consumer",
"dawnlight:shadow/producer"
]
}
},
"required": [
"kind",
"symbol",
"binding",
"resource"
],
"type": "object"
}semantic · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
enabledWhen | optional here | type="array"; items=#/$defs/condition |
semantic | required | $ref="#/$defs/identifier" |
symbol | required | $ref="#/$defs/glslIdentifier" |
version | required | $ref="#/$defs/positiveVersion" |
Full structural rule: #/$defs/semantic
{
"additionalProperties": false,
"properties": {
"enabledWhen": {
"items": {
"$ref": "#/$defs/condition"
},
"type": "array"
},
"semantic": {
"$ref": "#/$defs/identifier"
},
"symbol": {
"$ref": "#/$defs/glslIdentifier"
},
"version": {
"$ref": "#/$defs/positiveVersion"
}
},
"required": [
"symbol",
"semantic",
"version"
],
"type": "object"
}sceneBinding · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
binding | optional here | type="integer"; minimum=0 |
contract | required | $ref="#/$defs/identifier" |
frequency | required | enum=["frame","view","batch","draw"] |
symbol | required | $ref="#/$defs/glslIdentifier" |
version | required | $ref="#/$defs/positiveVersion" |
Full structural rule: #/$defs/sceneBinding
{
"additionalProperties": false,
"properties": {
"binding": {
"minimum": 0,
"type": "integer"
},
"contract": {
"$ref": "#/$defs/identifier"
},
"frequency": {
"enum": [
"frame",
"view",
"batch",
"draw"
]
},
"symbol": {
"$ref": "#/$defs/glslIdentifier"
},
"version": {
"$ref": "#/$defs/positiveVersion"
}
},
"required": [
"symbol",
"contract",
"version",
"frequency"
],
"type": "object"
}sceneRoute · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
id | required | $ref="#/$defs/identifier" |
mode | required | enum=["override","builtin","disabled"] |
stage | optional here | $ref="#/$defs/identifier" |
version | required | $ref="#/$defs/positiveVersion" |
Full structural rule: #/$defs/sceneRoute
{
"additionalProperties": false,
"allOf": [
{
"if": {
"properties": {
"mode": {
"const": "override"
}
},
"required": [
"mode"
]
},
"then": {
"required": [
"stage"
]
}
},
{
"if": {
"properties": {
"mode": {
"enum": [
"builtin",
"disabled"
]
}
}
},
"then": {
"not": {
"anyOf": [
{
"required": [
"stage"
]
}
]
}
}
}
],
"properties": {
"id": {
"$ref": "#/$defs/identifier"
},
"mode": {
"enum": [
"override",
"builtin",
"disabled"
]
},
"stage": {
"$ref": "#/$defs/identifier"
},
"version": {
"$ref": "#/$defs/positiveVersion"
}
},
"required": [
"id",
"version",
"mode"
],
"type": "object"
}frameTarget · v3
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
targets | required | $ref="#/$defs/targets" |
Full structural rule: #/$defs/frameTarget
{
"additionalProperties": false,
"properties": {
"targets": {
"$ref": "#/$defs/targets"
}
},
"required": [
"targets"
],
"type": "object"
}Manifest v4
manifest · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
author | optional here | type="string" |
description | optional here | type="string" |
expectedCatalogSha256 | optional here | type="string"; pattern="^[0-9a-f]{64}$" |
frameTarget | optional here | $ref="#/$defs/frameTarget" |
id | required | $ref="#/$defs/identifier" |
manifestVersion | required | const=4 |
name | required | $ref="#/$defs/nonEmptyString" |
options | required | type="array"; items=#/$defs/option |
passes | optional here | type="array"; items=#/$defs/pass |
programs | optional here | type="array"; items=#/$defs/program |
resources | required | type="array"; items=#/$defs/resource |
sceneAbiVersion | required | const=2 |
sceneCategories | required | type="array"; items=#/$defs/sceneRoute |
settings | optional here | $ref="#/$defs/relativePath" |
shaderRoot | optional here | $ref="#/$defs/relativePath" |
version | required | $ref="#/$defs/nonEmptyString" |
Full structural rule: #/$defs/manifest
{
"additionalProperties": false,
"properties": {
"author": {
"type": "string"
},
"description": {
"type": "string"
},
"expectedCatalogSha256": {
"pattern": "^[0-9a-f]{64}$",
"type": "string"
},
"frameTarget": {
"$ref": "#/$defs/frameTarget"
},
"id": {
"$ref": "#/$defs/identifier"
},
"manifestVersion": {
"const": 4
},
"name": {
"$ref": "#/$defs/nonEmptyString"
},
"options": {
"items": {
"$ref": "#/$defs/option"
},
"type": "array"
},
"passes": {
"items": {
"$ref": "#/$defs/pass"
},
"type": "array"
},
"programs": {
"items": {
"$ref": "#/$defs/program"
},
"type": "array"
},
"resources": {
"items": {
"$ref": "#/$defs/resource"
},
"type": "array"
},
"sceneAbiVersion": {
"const": 2
},
"sceneCategories": {
"items": {
"$ref": "#/$defs/sceneRoute"
},
"type": "array"
},
"settings": {
"$ref": "#/$defs/relativePath"
},
"shaderRoot": {
"$ref": "#/$defs/relativePath"
},
"version": {
"$ref": "#/$defs/nonEmptyString"
}
},
"required": [
"manifestVersion",
"id",
"name",
"version",
"options",
"resources",
"sceneAbiVersion",
"sceneCategories"
],
"type": "object"
}sourceManifest · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
author | optional here | type="string" |
description | optional here | type="string" |
expectedCatalogSha256 | optional here | type="string"; pattern="^[0-9a-f]{64}$" |
fragments | required | type="array"; minItems=1; uniqueItems=true; items=#/$defs/relativePath |
frameTarget | optional here | $ref="#/$defs/frameTarget" |
id | required | $ref="#/$defs/identifier" |
manifestVersion | required | const=4 |
name | required | $ref="#/$defs/nonEmptyString" |
sceneAbiVersion | required | const=2 |
settings | optional here | $ref="#/$defs/relativePath" |
shaderRoot | optional here | $ref="#/$defs/relativePath" |
sourceFormatVersion | required | const=1 |
version | required | $ref="#/$defs/nonEmptyString" |
Full structural rule: #/$defs/sourceManifest
{
"additionalProperties": false,
"properties": {
"author": {
"type": "string"
},
"description": {
"type": "string"
},
"expectedCatalogSha256": {
"pattern": "^[0-9a-f]{64}$",
"type": "string"
},
"fragments": {
"items": {
"$ref": "#/$defs/relativePath"
},
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"frameTarget": {
"$ref": "#/$defs/frameTarget"
},
"id": {
"$ref": "#/$defs/identifier"
},
"manifestVersion": {
"const": 4
},
"name": {
"$ref": "#/$defs/nonEmptyString"
},
"sceneAbiVersion": {
"const": 2
},
"settings": {
"$ref": "#/$defs/relativePath"
},
"shaderRoot": {
"$ref": "#/$defs/relativePath"
},
"sourceFormatVersion": {
"const": 1
},
"version": {
"$ref": "#/$defs/nonEmptyString"
}
},
"required": [
"sourceFormatVersion",
"manifestVersion",
"id",
"name",
"version",
"fragments",
"sceneAbiVersion"
],
"type": "object"
}fragment · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
options | optional here | type="array"; items=#/$defs/option |
passes | optional here | type="array"; items=#/$defs/pass |
programs | optional here | type="array"; items=#/$defs/program |
resources | optional here | type="array"; items=#/$defs/resource |
sceneCategories | optional here | type="array"; items=#/$defs/sceneRoute |
Full structural rule: #/$defs/fragment
{
"additionalProperties": false,
"properties": {
"options": {
"items": {
"$ref": "#/$defs/option"
},
"type": "array"
},
"passes": {
"items": {
"$ref": "#/$defs/pass"
},
"type": "array"
},
"programs": {
"items": {
"$ref": "#/$defs/program"
},
"type": "array"
},
"resources": {
"items": {
"$ref": "#/$defs/resource"
},
"type": "array"
},
"sceneCategories": {
"items": {
"$ref": "#/$defs/sceneRoute"
},
"type": "array"
}
},
"type": "object"
}identifier · v4
type="string"; pattern="^[a-z0-9][a-z0-9_.-]*:[a-z0-9][a-z0-9_./-]*$"
Full structural rule: #/$defs/identifier
{
"pattern": "^[a-z0-9][a-z0-9_.-]*:[a-z0-9][a-z0-9_./-]*$",
"type": "string"
}relativePath · v4
type="string"; minLength=1
Full structural rule: #/$defs/relativePath
{
"minLength": 1,
"type": "string"
}nonEmptyString · v4
type="string"; minLength=1
Full structural rule: #/$defs/nonEmptyString
{
"minLength": 1,
"type": "string"
}positiveVersion · v4
type="integer"; minimum=1
Full structural rule: #/$defs/positiveVersion
{
"minimum": 1,
"type": "integer"
}option · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
allowed | optional here | type="array"; minItems=1; uniqueItems=true; items=#/$defs/optionScalar |
default | required | $ref="#/$defs/optionScalar" |
description | optional here | type="string" |
id | required | $ref="#/$defs/identifier" |
impact | required | type="array"; uniqueItems=true |
max | optional here | type="number" |
min | optional here | type="number" |
name | optional here | type="string" |
type | required | enum=["boolean","integer","number","string"] |
Full structural rule: #/$defs/option
{
"additionalProperties": false,
"allOf": [
{
"if": {
"properties": {
"type": {
"const": "boolean"
}
},
"required": [
"type"
]
},
"then": {
"properties": {
"allowed": {
"items": {
"type": "boolean"
},
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"default": {
"type": "boolean"
},
"max": {
"not": {}
},
"min": {
"not": {}
}
}
}
},
{
"if": {
"properties": {
"type": {
"const": "integer"
}
},
"required": [
"type"
]
},
"then": {
"properties": {
"allowed": {
"items": {
"type": "integer"
},
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"default": {
"type": "integer"
},
"max": {
"type": "integer"
},
"min": {
"type": "integer"
}
}
}
},
{
"if": {
"properties": {
"type": {
"const": "number"
}
},
"required": [
"type"
]
},
"then": {
"properties": {
"allowed": {
"items": {
"type": "number"
},
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"default": {
"type": "number"
},
"max": {
"type": "number"
},
"min": {
"type": "number"
}
}
}
},
{
"if": {
"properties": {
"type": {
"const": "string"
}
},
"required": [
"type"
]
},
"then": {
"properties": {
"allowed": {
"items": {
"type": "string"
},
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"default": {
"type": "string"
},
"max": {
"not": {}
},
"min": {
"not": {}
}
}
}
},
{
"not": {
"required": [
"allowed",
"min"
]
}
},
{
"not": {
"required": [
"allowed",
"max"
]
}
},
{
"oneOf": [
{
"required": [
"min",
"max"
]
},
{
"not": {
"anyOf": [
{
"required": [
"min"
]
},
{
"required": [
"max"
]
}
]
}
}
]
}
],
"properties": {
"allowed": {
"items": {
"$ref": "#/$defs/optionScalar"
},
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"default": {
"$ref": "#/$defs/optionScalar"
},
"description": {
"type": "string"
},
"id": {
"$ref": "#/$defs/identifier"
},
"impact": {
"items": {
"enum": [
"uniform",
"program",
"pipeline",
"resources"
]
},
"type": "array",
"uniqueItems": true
},
"max": {
"type": "number"
},
"min": {
"type": "number"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"boolean",
"integer",
"number",
"string"
]
}
},
"required": [
"id",
"type",
"default",
"impact"
],
"type": "object"
}optionScalar · v4
type=["boolean","integer","number","string"]
Full structural rule: #/$defs/optionScalar
{
"type": [
"boolean",
"integer",
"number",
"string"
]
}condition · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
equals | optional here | $ref="#/$defs/optionScalar" |
oneOf | optional here | type="array"; minItems=1; uniqueItems=true; items=#/$defs/optionScalar |
option | required | $ref="#/$defs/identifier" |
Full structural rule: #/$defs/condition
{
"additionalProperties": false,
"allOf": [
{
"oneOf": [
{
"required": [
"equals"
]
},
{
"required": [
"oneOf"
]
}
]
}
],
"properties": {
"equals": {
"$ref": "#/$defs/optionScalar"
},
"oneOf": {
"items": {
"$ref": "#/$defs/optionScalar"
},
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"option": {
"$ref": "#/$defs/identifier"
}
},
"required": [
"option"
],
"type": "object"
}resource · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
oneOf[0].content | optional here | $ref="#/$defs/content" |
oneOf[0].format | optional here | $ref="#/$defs/nonEmptyString" |
oneOf[0].historyCapacity | optional here | type="integer"; minimum=2 |
oneOf[0].id | required | $ref="#/$defs/identifier" |
oneOf[0].kind | required | enum=["texture2D","textureCube"] |
oneOf[0].lifetime | required | oneOf: 2 |
oneOf[0].sampling | optional here | $ref="#/$defs/sampling" |
oneOf[0].size | optional here | $ref="#/$defs/size" |
oneOf[1].byteSize | required | type="integer"; minimum=1 |
oneOf[1].content | optional here | $ref="#/$defs/content" |
oneOf[1].id | required | $ref="#/$defs/identifier" |
oneOf[1].kind | required | const="buffer" |
oneOf[1].lifetime | required | oneOf: 2 |
oneOf[1].usage | optional here | enum=["staticDraw","dynamicDraw","streamDraw"] |
Full structural rule: #/$defs/resource
{
"oneOf": [
{
"additionalProperties": false,
"properties": {
"content": {
"$ref": "#/$defs/content"
},
"format": {
"$ref": "#/$defs/nonEmptyString"
},
"historyCapacity": {
"minimum": 2,
"type": "integer"
},
"id": {
"$ref": "#/$defs/identifier"
},
"kind": {
"enum": [
"texture2D",
"textureCube"
]
},
"lifetime": {
"oneOf": [
{
"enum": [
"persistent",
"frame",
"transient",
"history",
"external"
]
},
{
"$ref": "#/$defs/historyLifetime"
}
]
},
"sampling": {
"$ref": "#/$defs/sampling"
},
"size": {
"$ref": "#/$defs/size"
}
},
"required": [
"id",
"kind",
"lifetime"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"byteSize": {
"minimum": 1,
"type": "integer"
},
"content": {
"$ref": "#/$defs/content"
},
"id": {
"$ref": "#/$defs/identifier"
},
"kind": {
"const": "buffer"
},
"lifetime": {
"oneOf": [
{
"enum": [
"persistent",
"frame",
"transient",
"history",
"external"
]
},
{
"$ref": "#/$defs/historyLifetime"
}
]
},
"usage": {
"enum": [
"staticDraw",
"dynamicDraw",
"streamDraw"
]
}
},
"required": [
"id",
"kind",
"lifetime",
"byteSize"
],
"type": "object"
}
]
}content · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
oneOf[1].type | required | const="undefined" |
oneOf[2].type | required | const="external" |
oneOf[3].type | required | const="clear" |
oneOf[3].value | required | oneOf: 2 |
oneOf[4].encoding | optional here | enum=["image","raw"] |
oneOf[4].faces | optional here | type="object"; additionalProperties=false |
oneOf[4].faces.negativeX | required | $ref="#/$defs/relativePath" |
oneOf[4].faces.negativeY | required | $ref="#/$defs/relativePath" |
oneOf[4].faces.negativeZ | required | $ref="#/$defs/relativePath" |
oneOf[4].faces.positiveX | required | $ref="#/$defs/relativePath" |
oneOf[4].faces.positiveY | required | $ref="#/$defs/relativePath" |
oneOf[4].faces.positiveZ | required | $ref="#/$defs/relativePath" |
oneOf[4].path | optional here | $ref="#/$defs/relativePath" |
oneOf[4].type | required | const="asset" |
oneOf[5].generator | required | $ref="#/$defs/identifier" |
oneOf[5].type | required | const="generated" |
oneOf[5].version | required | $ref="#/$defs/positiveVersion" |
oneOf[6].service | required | $ref="#/$defs/identifier" |
oneOf[6].type | required | const="service" |
oneOf[6].version | required | $ref="#/$defs/positiveVersion" |
Full structural rule: #/$defs/content
{
"oneOf": [
{
"enum": [
"undefined",
"external"
]
},
{
"additionalProperties": false,
"properties": {
"type": {
"const": "undefined"
}
},
"required": [
"type"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"type": {
"const": "external"
}
},
"required": [
"type"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"type": {
"const": "clear"
},
"value": {
"oneOf": [
{
"items": {
"type": "number"
},
"maxItems": 1,
"minItems": 1,
"type": "array"
},
{
"items": {
"type": "number"
},
"maxItems": 4,
"minItems": 4,
"type": "array"
}
]
}
},
"required": [
"type",
"value"
],
"type": "object"
},
{
"additionalProperties": false,
"allOf": [
{
"oneOf": [
{
"required": [
"path"
]
},
{
"required": [
"faces"
]
}
]
}
],
"properties": {
"encoding": {
"enum": [
"image",
"raw"
]
},
"faces": {
"additionalProperties": false,
"properties": {
"negativeX": {
"$ref": "#/$defs/relativePath"
},
"negativeY": {
"$ref": "#/$defs/relativePath"
},
"negativeZ": {
"$ref": "#/$defs/relativePath"
},
"positiveX": {
"$ref": "#/$defs/relativePath"
},
"positiveY": {
"$ref": "#/$defs/relativePath"
},
"positiveZ": {
"$ref": "#/$defs/relativePath"
}
},
"required": [
"positiveX",
"negativeX",
"positiveY",
"negativeY",
"positiveZ",
"negativeZ"
],
"type": "object"
},
"path": {
"$ref": "#/$defs/relativePath"
},
"type": {
"const": "asset"
}
},
"required": [
"type"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"generator": {
"$ref": "#/$defs/identifier"
},
"type": {
"const": "generated"
},
"version": {
"$ref": "#/$defs/positiveVersion"
}
},
"required": [
"type",
"generator",
"version"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"service": {
"$ref": "#/$defs/identifier"
},
"type": {
"const": "service"
},
"version": {
"$ref": "#/$defs/positiveVersion"
}
},
"required": [
"type",
"service",
"version"
],
"type": "object"
}
]
}size · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
height | optional here | type="integer"; minimum=1 |
mode | required | enum=["absolute","viewport","output"] |
scale | optional here | type="array"; minItems=2; maxItems=2 |
width | optional here | type="integer"; minimum=1 |
Full structural rule: #/$defs/size
{
"additionalProperties": false,
"allOf": [
{
"if": {
"properties": {
"mode": {
"const": "absolute"
}
},
"required": [
"mode"
]
},
"then": {
"allOf": [
{
"not": {
"anyOf": [
{
"required": [
"scale"
]
}
]
}
}
],
"required": [
"width",
"height"
]
}
},
{
"if": {
"properties": {
"mode": {
"enum": [
"viewport",
"output"
]
}
}
},
"then": {
"not": {
"anyOf": [
{
"required": [
"width"
]
},
{
"required": [
"height"
]
}
]
}
}
}
],
"properties": {
"height": {
"minimum": 1,
"type": "integer"
},
"mode": {
"enum": [
"absolute",
"viewport",
"output"
]
},
"scale": {
"items": {
"exclusiveMinimum": 0,
"type": "number"
},
"maxItems": 2,
"minItems": 2,
"type": "array"
},
"width": {
"minimum": 1,
"type": "integer"
}
},
"required": [
"mode"
],
"type": "object"
}sampling · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
magFilter | optional here | enum=["nearest","linear"] |
minFilter | optional here | enum=["nearest","linear"] |
mipLevels | optional here | type="integer"; minimum=1 |
wrapS | optional here | enum=["repeat","clampToEdge","mirroredRepeat"] |
wrapT | optional here | enum=["repeat","clampToEdge","mirroredRepeat"] |
Full structural rule: #/$defs/sampling
{
"additionalProperties": false,
"properties": {
"magFilter": {
"enum": [
"nearest",
"linear"
]
},
"minFilter": {
"enum": [
"nearest",
"linear"
]
},
"mipLevels": {
"minimum": 1,
"type": "integer"
},
"wrapS": {
"enum": [
"repeat",
"clampToEdge",
"mirroredRepeat"
]
},
"wrapT": {
"enum": [
"repeat",
"clampToEdge",
"mirroredRepeat"
]
}
},
"type": "object"
}historyLifetime · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
capacity | required | type="integer"; minimum=2 |
kind | required | const="history" |
Full structural rule: #/$defs/historyLifetime
{
"additionalProperties": false,
"properties": {
"capacity": {
"minimum": 2,
"type": "integer"
},
"kind": {
"const": "history"
}
},
"required": [
"kind",
"capacity"
],
"type": "object"
}resourceView · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
framesAgo | optional here | type="integer"; minimum=1 |
resource | required | $ref="#/$defs/identifier" |
view | optional here | enum=["dawnlight:direct","dawnlight:history/current","dawnlight:history/previous","dawnlight:shadow/consumer","dawnlight:shadow/producer"] |
Full structural rule: #/$defs/resourceView
{
"additionalProperties": false,
"allOf": [
{
"if": {
"properties": {
"view": {
"const": "dawnlight:history/previous"
}
},
"required": [
"view"
]
},
"then": {
"required": [
"framesAgo"
]
}
},
{
"if": {
"not": {
"properties": {
"view": {
"const": "dawnlight:history/previous"
}
},
"required": [
"view"
]
}
},
"then": {
"not": {
"anyOf": [
{
"required": [
"framesAgo"
]
}
]
}
}
}
],
"properties": {
"framesAgo": {
"minimum": 1,
"type": "integer"
},
"resource": {
"$ref": "#/$defs/identifier"
},
"view": {
"enum": [
"dawnlight:direct",
"dawnlight:history/current",
"dawnlight:history/previous",
"dawnlight:shadow/consumer",
"dawnlight:shadow/producer"
]
}
},
"required": [
"resource"
],
"type": "object"
}program · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
bindings | optional here | — |
compileMode | optional here | enum=["legacyCustom","officialCompatible","manifestDriven"] |
compute | optional here | $ref="#/$defs/relativePath" |
defines | optional here | type="object"; additionalProperties={"$ref":"#/$defs/defineValue"} |
drawBuffers | optional here | — |
engineDrawState | optional here | — |
fragment | optional here | $ref="#/$defs/relativePath" |
id | required | $ref="#/$defs/identifier" |
kind | required | enum=["graphics","compute"] |
state | optional here | — |
targets | optional here | — |
variants | optional here | type="array"; items=#/$defs/variant |
vertex | optional here | $ref="#/$defs/relativePath" |
Full structural rule: #/$defs/program
{
"additionalProperties": false,
"allOf": [
{
"if": {
"properties": {
"kind": {
"const": "graphics"
}
},
"required": [
"kind"
]
},
"then": {
"allOf": [
{
"not": {
"anyOf": [
{
"required": [
"compute"
]
}
]
}
}
],
"required": [
"vertex",
"fragment"
]
}
},
{
"if": {
"properties": {
"kind": {
"const": "compute"
}
},
"required": [
"kind"
]
},
"then": {
"allOf": [
{
"not": {
"anyOf": [
{
"required": [
"vertex"
]
},
{
"required": [
"fragment"
]
},
{
"required": [
"compileMode"
]
}
]
}
}
],
"required": [
"compute"
]
}
}
],
"properties": {
"bindings": {
"not": {}
},
"compileMode": {
"enum": [
"legacyCustom",
"officialCompatible",
"manifestDriven"
]
},
"compute": {
"$ref": "#/$defs/relativePath"
},
"defines": {
"additionalProperties": {
"$ref": "#/$defs/defineValue"
},
"propertyNames": {
"$ref": "#/$defs/glslIdentifier"
},
"type": "object"
},
"drawBuffers": {
"not": {}
},
"engineDrawState": {
"not": {}
},
"fragment": {
"$ref": "#/$defs/relativePath"
},
"id": {
"$ref": "#/$defs/identifier"
},
"kind": {
"enum": [
"graphics",
"compute"
]
},
"state": {
"not": {}
},
"targets": {
"not": {}
},
"variants": {
"items": {
"$ref": "#/$defs/variant"
},
"type": "array"
},
"vertex": {
"$ref": "#/$defs/relativePath"
}
},
"required": [
"id",
"kind"
],
"type": "object"
}variant · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
defines | required | type="object"; additionalProperties={"$ref":"#/$defs/defineValue"} |
id | required | $ref="#/$defs/identifier" |
Full structural rule: #/$defs/variant
{
"additionalProperties": false,
"properties": {
"defines": {
"additionalProperties": {
"$ref": "#/$defs/defineValue"
},
"propertyNames": {
"$ref": "#/$defs/glslIdentifier"
},
"type": "object"
},
"id": {
"$ref": "#/$defs/identifier"
}
},
"required": [
"id",
"defines"
],
"type": "object"
}defineValue · v4
oneOf: 2
Full structural rule: #/$defs/defineValue
{
"oneOf": [
{
"$ref": "#/$defs/nullableDefineValue"
},
{
"$ref": "#/$defs/defineBinding"
}
]
}defineBinding · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
capability | optional here | $ref="#/$defs/identifier" |
map | optional here | type="object"; additionalProperties={"$ref":"#/$defs/nullableDefineValue"} |
option | optional here | $ref="#/$defs/identifier" |
Full structural rule: #/$defs/defineBinding
{
"additionalProperties": false,
"allOf": [
{
"oneOf": [
{
"required": [
"option"
]
},
{
"required": [
"capability"
]
}
]
}
],
"properties": {
"capability": {
"$ref": "#/$defs/identifier"
},
"map": {
"additionalProperties": {
"$ref": "#/$defs/nullableDefineValue"
},
"type": "object"
},
"option": {
"$ref": "#/$defs/identifier"
}
},
"type": "object"
}nullableDefineValue · v4
type=["string","boolean","integer","number","null"]
Full structural rule: #/$defs/nullableDefineValue
{
"type": [
"string",
"boolean",
"integer",
"number",
"null"
]
}glslIdentifier · v4
type="string"; pattern="^[A-Za-z_][A-Za-z0-9_]*$"
Full structural rule: #/$defs/glslIdentifier
{
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
"type": "string"
}pass · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
commands | optional here | type="array"; items=#/$defs/command |
enabled | required | type="boolean" |
enabledWhen | optional here | type="array"; items=#/$defs/condition |
host | optional here | $ref="#/$defs/host" |
id | required | $ref="#/$defs/identifier" |
inputs | optional here | type="array" |
outputs | optional here | type="array" |
programs | optional here | type="array"; uniqueItems=true; items=#/$defs/identifier |
services | optional here | type="array"; items=#/$defs/service |
stage | optional here | $ref="#/$defs/stage" |
Full structural rule: #/$defs/pass
{
"additionalProperties": false,
"allOf": [
{
"not": {
"required": [
"stage",
"host"
]
}
}
],
"properties": {
"commands": {
"items": {
"$ref": "#/$defs/command"
},
"type": "array"
},
"enabled": {
"type": "boolean"
},
"enabledWhen": {
"items": {
"$ref": "#/$defs/condition"
},
"type": "array"
},
"host": {
"$ref": "#/$defs/host"
},
"id": {
"$ref": "#/$defs/identifier"
},
"inputs": {
"items": {
"oneOf": [
{
"$ref": "#/$defs/identifier"
},
{
"$ref": "#/$defs/resourceView"
}
]
},
"type": "array"
},
"outputs": {
"items": {
"oneOf": [
{
"$ref": "#/$defs/identifier"
},
{
"$ref": "#/$defs/resourceView"
}
]
},
"type": "array"
},
"programs": {
"items": {
"$ref": "#/$defs/identifier"
},
"type": "array",
"uniqueItems": true
},
"services": {
"items": {
"$ref": "#/$defs/service"
},
"type": "array"
},
"stage": {
"$ref": "#/$defs/stage"
}
},
"required": [
"id",
"enabled"
],
"type": "object"
}stage · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
ordering | optional here | $ref="#/$defs/ordering" |
phase | required | enum=["modelShadow","framePrepare","shadow","opaque","transparent","cloudReflection","shaftPrepare","shaftSun","cloud","particles","afterDraw","afterFinal","screenOutput"] |
target | required | enum=["world","afterDraw"] |
template | required | $ref="#/$defs/identifier" |
version | required | $ref="#/$defs/positiveVersion" |
Full structural rule: #/$defs/stage
{
"additionalProperties": false,
"properties": {
"ordering": {
"$ref": "#/$defs/ordering"
},
"phase": {
"enum": [
"modelShadow",
"framePrepare",
"shadow",
"opaque",
"transparent",
"cloudReflection",
"shaftPrepare",
"shaftSun",
"cloud",
"particles",
"afterDraw",
"afterFinal",
"screenOutput"
]
},
"target": {
"enum": [
"world",
"afterDraw"
]
},
"template": {
"$ref": "#/$defs/identifier"
},
"version": {
"$ref": "#/$defs/positiveVersion"
}
},
"required": [
"template",
"version",
"target",
"phase"
],
"type": "object"
}host · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
ordering | optional here | $ref="#/$defs/ordering" |
phase | required | enum=["modelShadow","framePrepare","shadow","opaque","transparent","cloudReflection","shaftPrepare","shaftSun","cloud","particles","afterDraw","afterFinal","screenOutput"] |
target | required | enum=["world","afterDraw"] |
Full structural rule: #/$defs/host
{
"additionalProperties": false,
"properties": {
"ordering": {
"$ref": "#/$defs/ordering"
},
"phase": {
"enum": [
"modelShadow",
"framePrepare",
"shadow",
"opaque",
"transparent",
"cloudReflection",
"shaftPrepare",
"shaftSun",
"cloud",
"particles",
"afterDraw",
"afterFinal",
"screenOutput"
]
},
"target": {
"enum": [
"world",
"afterDraw"
]
}
},
"required": [
"target",
"phase"
],
"type": "object"
}ordering · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
after | optional here | type="array"; uniqueItems=true; items=#/$defs/identifier |
before | optional here | type="array"; uniqueItems=true; items=#/$defs/identifier |
requires | optional here | type="array"; uniqueItems=true; items=#/$defs/identifier |
Full structural rule: #/$defs/ordering
{
"additionalProperties": false,
"properties": {
"after": {
"items": {
"$ref": "#/$defs/identifier"
},
"type": "array",
"uniqueItems": true
},
"before": {
"items": {
"$ref": "#/$defs/identifier"
},
"type": "array",
"uniqueItems": true
},
"requires": {
"items": {
"$ref": "#/$defs/identifier"
},
"type": "array",
"uniqueItems": true
}
},
"type": "object"
}service · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
enabledWhen | optional here | type="array"; items=#/$defs/condition |
id | required | $ref="#/$defs/identifier" |
mode | optional here | enum=["required","optional"] |
unavailable | optional here | enum=["disablePass"] |
version | required | $ref="#/$defs/positiveVersion" |
Full structural rule: #/$defs/service
{
"additionalProperties": false,
"properties": {
"enabledWhen": {
"items": {
"$ref": "#/$defs/condition"
},
"type": "array"
},
"id": {
"$ref": "#/$defs/identifier"
},
"mode": {
"enum": [
"required",
"optional"
]
},
"unavailable": {
"enum": [
"disablePass"
]
},
"version": {
"$ref": "#/$defs/positiveVersion"
}
},
"required": [
"id",
"version"
],
"type": "object"
}command · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
bindings | optional here | type="array"; items=#/$defs/binding |
clear | optional here | $ref="#/$defs/clear" |
copy | optional here | $ref="#/$defs/copy" |
dispatch | optional here | $ref="#/$defs/dispatch" |
drawBuffers | optional here | $ref="#/$defs/drawBufferLayout" |
program | optional here | $ref="#/$defs/identifier" |
provider | optional here | $ref="#/$defs/provider" |
resource | optional here | $ref="#/$defs/identifier" |
sceneBindings | optional here | type="array"; items=#/$defs/sceneBinding |
sceneProvider | optional here | $ref="#/$defs/provider" |
semantics | optional here | type="array"; items=#/$defs/semantic |
state | optional here | $ref="#/$defs/state" |
targets | optional here | $ref="#/$defs/targets" |
type | required | enum=["fullscreen","compute","copy","clear","present","engineDraw","historyCommit"] |
viewport | optional here | $ref="#/$defs/viewport" |
Full structural rule: #/$defs/command
{
"additionalProperties": false,
"allOf": [
{
"if": {
"properties": {
"type": {
"const": "fullscreen"
}
},
"required": [
"type"
]
},
"then": {
"required": [
"program",
"targets"
]
}
},
{
"if": {
"properties": {
"type": {
"const": "compute"
}
},
"required": [
"type"
]
},
"then": {
"required": [
"program",
"dispatch"
]
}
},
{
"if": {
"properties": {
"type": {
"const": "copy"
}
},
"required": [
"type"
]
},
"then": {
"required": [
"copy"
]
}
},
{
"if": {
"properties": {
"type": {
"const": "clear"
}
},
"required": [
"type"
]
},
"then": {
"required": [
"clear"
]
}
},
{
"if": {
"properties": {
"type": {
"const": "present"
}
},
"required": [
"type"
]
},
"then": {
"required": [
"program"
]
}
},
{
"if": {
"properties": {
"type": {
"const": "historyCommit"
}
},
"required": [
"type"
]
},
"then": {
"required": [
"resource"
]
}
},
{
"if": {
"not": {
"properties": {
"type": {
"const": "copy"
}
},
"required": [
"type"
]
}
},
"then": {
"not": {
"anyOf": [
{
"required": [
"copy"
]
}
]
}
}
},
{
"if": {
"not": {
"properties": {
"type": {
"const": "historyCommit"
}
},
"required": [
"type"
]
}
},
"then": {
"not": {
"anyOf": [
{
"required": [
"resource"
]
}
]
}
}
},
{
"if": {
"properties": {
"type": {
"const": "compute"
}
},
"required": [
"type"
]
},
"then": {
"not": {
"anyOf": [
{
"required": [
"viewport"
]
},
{
"required": [
"clear"
]
},
{
"required": [
"targets"
]
},
{
"required": [
"state"
]
}
]
}
}
},
{
"if": {
"properties": {
"type": {
"const": "present"
}
},
"required": [
"type"
]
},
"then": {
"not": {
"anyOf": [
{
"required": [
"targets"
]
},
{
"required": [
"drawBuffers"
]
}
]
}
}
},
{
"if": {
"properties": {
"type": {
"const": "copy"
}
},
"required": [
"type"
]
},
"then": {
"not": {
"anyOf": [
{
"required": [
"program"
]
},
{
"required": [
"bindings"
]
},
{
"required": [
"semantics"
]
},
{
"required": [
"sceneBindings"
]
},
{
"required": [
"targets"
]
},
{
"required": [
"drawBuffers"
]
},
{
"required": [
"state"
]
},
{
"required": [
"viewport"
]
},
{
"required": [
"clear"
]
},
{
"required": [
"dispatch"
]
}
]
}
}
},
{
"if": {
"properties": {
"type": {
"const": "clear"
}
},
"required": [
"type"
]
},
"then": {
"not": {
"anyOf": [
{
"required": [
"drawBuffers"
]
}
]
}
}
},
{
"if": {
"properties": {
"type": {
"const": "historyCommit"
}
},
"required": [
"type"
]
},
"then": {
"not": {
"anyOf": [
{
"required": [
"program"
]
},
{
"required": [
"bindings"
]
},
{
"required": [
"semantics"
]
},
{
"required": [
"sceneBindings"
]
},
{
"required": [
"targets"
]
},
{
"required": [
"drawBuffers"
]
},
{
"required": [
"state"
]
},
{
"required": [
"viewport"
]
},
{
"required": [
"clear"
]
},
{
"required": [
"dispatch"
]
},
{
"required": [
"copy"
]
}
]
}
}
},
{
"if": {
"properties": {
"type": {
"const": "engineDraw"
}
},
"required": [
"type"
]
},
"then": {
"oneOf": [
{
"required": [
"provider"
]
},
{
"required": [
"sceneProvider"
]
}
]
}
},
{
"if": {
"not": {
"properties": {
"type": {
"const": "engineDraw"
}
},
"required": [
"type"
]
}
},
"then": {
"not": {
"anyOf": [
{
"required": [
"provider"
]
},
{
"required": [
"sceneProvider"
]
}
]
}
}
}
],
"properties": {
"bindings": {
"items": {
"$ref": "#/$defs/binding"
},
"type": "array"
},
"clear": {
"$ref": "#/$defs/clear"
},
"copy": {
"$ref": "#/$defs/copy"
},
"dispatch": {
"$ref": "#/$defs/dispatch"
},
"drawBuffers": {
"$ref": "#/$defs/drawBufferLayout"
},
"program": {
"$ref": "#/$defs/identifier"
},
"provider": {
"$ref": "#/$defs/provider"
},
"resource": {
"$ref": "#/$defs/identifier"
},
"sceneBindings": {
"items": {
"$ref": "#/$defs/sceneBinding"
},
"type": "array"
},
"sceneProvider": {
"$ref": "#/$defs/provider"
},
"semantics": {
"items": {
"$ref": "#/$defs/semantic"
},
"type": "array"
},
"state": {
"$ref": "#/$defs/state"
},
"targets": {
"$ref": "#/$defs/targets"
},
"type": {
"enum": [
"fullscreen",
"compute",
"copy",
"clear",
"present",
"engineDraw",
"historyCommit"
]
},
"viewport": {
"$ref": "#/$defs/viewport"
}
},
"required": [
"type"
],
"type": "object"
}copy · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
aspects | required | type="array"; minItems=1; uniqueItems=true |
destination | required | oneOf: 2 |
filter | optional here | enum=["nearest","linear"] |
restore | optional here | enum=["none","frame"] |
source | required | oneOf: 2 |
Full structural rule: #/$defs/copy
{
"additionalProperties": false,
"properties": {
"aspects": {
"items": {
"enum": [
"color",
"depth"
]
},
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"destination": {
"oneOf": [
{
"$ref": "#/$defs/identifier"
},
{
"$ref": "#/$defs/resourceView"
}
]
},
"filter": {
"enum": [
"nearest",
"linear"
]
},
"restore": {
"enum": [
"none",
"frame"
]
},
"source": {
"oneOf": [
{
"$ref": "#/$defs/identifier"
},
{
"$ref": "#/$defs/resourceView"
}
]
}
},
"required": [
"source",
"destination",
"aspects"
],
"type": "object"
}clear · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
color | optional here | type="array"; minItems=4; maxItems=4 |
depth | optional here | type="number"; minimum=0; maximum=1 |
stencil | optional here | type="integer"; minimum=0 |
Full structural rule: #/$defs/clear
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"color": {
"items": {
"type": "number"
},
"maxItems": 4,
"minItems": 4,
"type": "array"
},
"depth": {
"maximum": 1,
"minimum": 0,
"type": "number"
},
"stencil": {
"minimum": 0,
"type": "integer"
}
},
"type": "object"
}dispatch · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
barriers | optional here | type="array"; uniqueItems=true |
groups | required | type="array"; minItems=3; maxItems=3 |
Full structural rule: #/$defs/dispatch
{
"additionalProperties": false,
"properties": {
"barriers": {
"items": {
"enum": [
"shaderImageAccess",
"textureFetch",
"textureUpdate",
"shaderStorage",
"bufferUpdate",
"framebuffer"
]
},
"type": "array",
"uniqueItems": true
},
"groups": {
"items": {
"minimum": 1,
"type": "integer"
},
"maxItems": 3,
"minItems": 3,
"type": "array"
}
},
"required": [
"groups"
],
"type": "object"
}viewport · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
restore | required | enum=["none","frame"] |
source | required | enum=["target","frame"] |
synchronizeScissor | optional here | type="boolean" |
Full structural rule: #/$defs/viewport
{
"additionalProperties": false,
"properties": {
"restore": {
"enum": [
"none",
"frame"
]
},
"source": {
"enum": [
"target",
"frame"
]
},
"synchronizeScissor": {
"type": "boolean"
}
},
"required": [
"source",
"restore"
],
"type": "object"
}provider · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
id | required | $ref="#/$defs/identifier" |
version | required | $ref="#/$defs/positiveVersion" |
Full structural rule: #/$defs/provider
{
"additionalProperties": false,
"properties": {
"id": {
"$ref": "#/$defs/identifier"
},
"version": {
"$ref": "#/$defs/positiveVersion"
}
},
"required": [
"id",
"version"
],
"type": "object"
}targets · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
colors | optional here | type="array"; uniqueItems=true; items=#/$defs/colorTarget |
depth | optional here | $ref="#/$defs/depthTarget" |
Full structural rule: #/$defs/targets
{
"additionalProperties": false,
"minProperties": 1,
"properties": {
"colors": {
"items": {
"$ref": "#/$defs/colorTarget"
},
"type": "array",
"uniqueItems": true
},
"depth": {
"$ref": "#/$defs/depthTarget"
}
},
"type": "object"
}colorTarget · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
clearValue | optional here | type="array"; minItems=4; maxItems=4 |
framesAgo | optional here | type="integer"; minimum=1 |
loadOp | required | enum=["load","clear","dontCare"] |
location | required | type="integer"; minimum=0 |
resource | required | $ref="#/$defs/identifier" |
storeOp | required | enum=["store","dontCare"] |
view | optional here | enum=["dawnlight:direct","dawnlight:history/current","dawnlight:history/previous","dawnlight:shadow/consumer","dawnlight:shadow/producer"] |
Full structural rule: #/$defs/colorTarget
{
"additionalProperties": false,
"allOf": [
{
"if": {
"properties": {
"loadOp": {
"const": "clear"
}
},
"required": [
"loadOp"
]
},
"then": {
"required": [
"clearValue"
]
}
},
{
"if": {
"not": {
"properties": {
"loadOp": {
"const": "clear"
}
},
"required": [
"loadOp"
]
}
},
"then": {
"not": {
"anyOf": [
{
"required": [
"clearValue"
]
}
]
}
}
}
],
"properties": {
"clearValue": {
"items": {
"type": "number"
},
"maxItems": 4,
"minItems": 4,
"type": "array"
},
"framesAgo": {
"minimum": 1,
"type": "integer"
},
"loadOp": {
"enum": [
"load",
"clear",
"dontCare"
]
},
"location": {
"minimum": 0,
"type": "integer"
},
"resource": {
"$ref": "#/$defs/identifier"
},
"storeOp": {
"enum": [
"store",
"dontCare"
]
},
"view": {
"enum": [
"dawnlight:direct",
"dawnlight:history/current",
"dawnlight:history/previous",
"dawnlight:shadow/consumer",
"dawnlight:shadow/producer"
]
}
},
"required": [
"location",
"resource",
"loadOp",
"storeOp"
],
"type": "object"
}depthTarget · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
clearValue | optional here | type="number"; minimum=0; maximum=1 |
framesAgo | optional here | type="integer"; minimum=1 |
loadOp | required | enum=["load","clear","dontCare"] |
resource | required | $ref="#/$defs/identifier" |
storeOp | required | enum=["store","dontCare"] |
view | optional here | enum=["dawnlight:direct","dawnlight:history/current","dawnlight:history/previous","dawnlight:shadow/consumer","dawnlight:shadow/producer"] |
Full structural rule: #/$defs/depthTarget
{
"additionalProperties": false,
"allOf": [
{
"if": {
"properties": {
"loadOp": {
"const": "clear"
}
},
"required": [
"loadOp"
]
},
"then": {
"required": [
"clearValue"
]
}
},
{
"if": {
"not": {
"properties": {
"loadOp": {
"const": "clear"
}
},
"required": [
"loadOp"
]
}
},
"then": {
"not": {
"anyOf": [
{
"required": [
"clearValue"
]
}
]
}
}
}
],
"properties": {
"clearValue": {
"maximum": 1,
"minimum": 0,
"type": "number"
},
"framesAgo": {
"minimum": 1,
"type": "integer"
},
"loadOp": {
"enum": [
"load",
"clear",
"dontCare"
]
},
"resource": {
"$ref": "#/$defs/identifier"
},
"storeOp": {
"enum": [
"store",
"dontCare"
]
},
"view": {
"enum": [
"dawnlight:direct",
"dawnlight:history/current",
"dawnlight:history/previous",
"dawnlight:shadow/consumer",
"dawnlight:shadow/producer"
]
}
},
"required": [
"resource",
"loadOp",
"storeOp"
],
"type": "object"
}state · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
blend | optional here | enum=["inherit","opaque","alphaBlend","nonPremultiplied"] |
blendTargets | optional here | type="array"; minItems=1; uniqueItems=true |
depth | optional here | enum=["inherit","default","depthWrite","depthTestWriteLess","disabled"] |
rasterizer | optional here | enum=["inherit","cullCounterClockwiseScissor","cullClockwiseScissor","cullNoneScissor"] |
Full structural rule: #/$defs/state
{
"additionalProperties": false,
"properties": {
"blend": {
"enum": [
"inherit",
"opaque",
"alphaBlend",
"nonPremultiplied"
]
},
"blendTargets": {
"items": {
"minimum": 0,
"type": "integer"
},
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"depth": {
"enum": [
"inherit",
"default",
"depthWrite",
"depthTestWriteLess",
"disabled"
]
},
"rasterizer": {
"enum": [
"inherit",
"cullCounterClockwiseScissor",
"cullClockwiseScissor",
"cullNoneScissor"
]
}
},
"type": "object"
}drawBufferLayout · v4
type="array"
Full structural rule: #/$defs/drawBufferLayout
{
"items": {
"oneOf": [
{
"const": "disabled"
},
{
"minimum": 0,
"type": "integer"
}
]
},
"type": "array"
}binding · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
access | optional here | enum=["readOnly","writeOnly","readWrite"] |
binding | required | type="integer"; minimum=0 |
enabledWhen | optional here | type="array"; items=#/$defs/condition |
fallback | optional here | oneOf: 2 |
framesAgo | optional here | type="integer"; minimum=1 |
kind | required | enum=["sampler2D","samplerCube","image2D","uniformBuffer","storageBuffer"] |
resource | required | $ref="#/$defs/identifier" |
symbol | required | $ref="#/$defs/glslIdentifier" |
view | optional here | enum=["dawnlight:direct","dawnlight:history/current","dawnlight:history/previous","dawnlight:shadow/consumer","dawnlight:shadow/producer"] |
Full structural rule: #/$defs/binding
{
"additionalProperties": false,
"allOf": [
{
"if": {
"properties": {
"kind": {
"enum": [
"image2D",
"storageBuffer"
]
}
}
},
"then": {
"required": [
"access"
]
}
},
{
"if": {
"not": {
"properties": {
"kind": {
"enum": [
"image2D",
"storageBuffer"
]
}
}
}
},
"then": {
"not": {
"anyOf": [
{
"required": [
"access"
]
}
]
}
}
},
{
"if": {
"properties": {
"view": {
"const": "dawnlight:history/previous"
}
},
"required": [
"view"
]
},
"then": {
"required": [
"framesAgo"
]
}
},
{
"if": {
"not": {
"properties": {
"view": {
"const": "dawnlight:history/previous"
}
},
"required": [
"view"
]
}
},
"then": {
"not": {
"anyOf": [
{
"required": [
"framesAgo"
]
}
]
}
}
}
],
"properties": {
"access": {
"enum": [
"readOnly",
"writeOnly",
"readWrite"
]
},
"binding": {
"minimum": 0,
"type": "integer"
},
"enabledWhen": {
"items": {
"$ref": "#/$defs/condition"
},
"type": "array"
},
"fallback": {
"oneOf": [
{
"$ref": "#/$defs/identifier"
},
{
"$ref": "#/$defs/resourceView"
}
]
},
"framesAgo": {
"minimum": 1,
"type": "integer"
},
"kind": {
"enum": [
"sampler2D",
"samplerCube",
"image2D",
"uniformBuffer",
"storageBuffer"
]
},
"resource": {
"$ref": "#/$defs/identifier"
},
"symbol": {
"$ref": "#/$defs/glslIdentifier"
},
"view": {
"enum": [
"dawnlight:direct",
"dawnlight:history/current",
"dawnlight:history/previous",
"dawnlight:shadow/consumer",
"dawnlight:shadow/producer"
]
}
},
"required": [
"kind",
"symbol",
"binding",
"resource"
],
"type": "object"
}semantic · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
enabledWhen | optional here | type="array"; items=#/$defs/condition |
semantic | required | $ref="#/$defs/identifier" |
symbol | required | $ref="#/$defs/glslIdentifier" |
version | required | $ref="#/$defs/positiveVersion" |
Full structural rule: #/$defs/semantic
{
"additionalProperties": false,
"properties": {
"enabledWhen": {
"items": {
"$ref": "#/$defs/condition"
},
"type": "array"
},
"semantic": {
"$ref": "#/$defs/identifier"
},
"symbol": {
"$ref": "#/$defs/glslIdentifier"
},
"version": {
"$ref": "#/$defs/positiveVersion"
}
},
"required": [
"symbol",
"semantic",
"version"
],
"type": "object"
}sceneBinding · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
binding | optional here | type="integer"; minimum=0 |
contract | required | $ref="#/$defs/identifier" |
frequency | required | enum=["frame","view","batch","draw"] |
symbol | required | $ref="#/$defs/glslIdentifier" |
version | required | $ref="#/$defs/positiveVersion" |
Full structural rule: #/$defs/sceneBinding
{
"additionalProperties": false,
"properties": {
"binding": {
"minimum": 0,
"type": "integer"
},
"contract": {
"$ref": "#/$defs/identifier"
},
"frequency": {
"enum": [
"frame",
"view",
"batch",
"draw"
]
},
"symbol": {
"$ref": "#/$defs/glslIdentifier"
},
"version": {
"$ref": "#/$defs/positiveVersion"
}
},
"required": [
"symbol",
"contract",
"version",
"frequency"
],
"type": "object"
}sceneRoute · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
id | required | $ref="#/$defs/identifier" |
mode | required | enum=["override","builtin","disabled"] |
stage | optional here | $ref="#/$defs/identifier" |
version | required | $ref="#/$defs/positiveVersion" |
Full structural rule: #/$defs/sceneRoute
{
"additionalProperties": false,
"allOf": [
{
"if": {
"properties": {
"mode": {
"const": "override"
}
},
"required": [
"mode"
]
},
"then": {
"required": [
"stage"
]
}
},
{
"if": {
"properties": {
"mode": {
"enum": [
"builtin",
"disabled"
]
}
}
},
"then": {
"not": {
"anyOf": [
{
"required": [
"stage"
]
}
]
}
}
}
],
"properties": {
"id": {
"$ref": "#/$defs/identifier"
},
"mode": {
"enum": [
"override",
"builtin",
"disabled"
]
},
"stage": {
"$ref": "#/$defs/identifier"
},
"version": {
"$ref": "#/$defs/positiveVersion"
}
},
"required": [
"id",
"version",
"mode"
],
"type": "object"
}frameTarget · v4
| Field / branch | Presence in this object | Structural constraints |
|---|---|---|
targets | required | $ref="#/$defs/targets" |
Full structural rule: #/$defs/frameTarget
{
"additionalProperties": false,
"properties": {
"targets": {
"$ref": "#/$defs/targets"
}
},
"required": [
"targets"
],
"type": "object"
}Complete examples
Sources and machine records
Coverage inventory · Schema v5 · Catalog v2 · Completion v2
schema-v3 · schema-v4 · schema-v5 · completion-v1 · completion-v2 · temporal · settings-guide ·