Skip to main content

Shader

Asset ID:shader

A GPU shader

Asset schema properties

uuid

uuid

Unique identifier for the asset

name

string

Name of the asset

blendMode

0invalid1opaque2alpha_blended3masked

Default:0(invalid)

The blend mode used for batching purposes

localGroupCount

array[float]

Compute shader local group count

materialDescriptor

array[object]

Optional data descriptor, used for material shaders

Parameter description

name

string

Parameter name

categories

array[string]

Categories

default

numberstringbooleanarray[number]

Parameter default value

nativeType

Parameter native type

type

Parameter type

moduleDescriptions

array[object]

Descriptions of all modules that composes this shader

Description of a shader module

payloadOffset

uint32

Offset in byte in the shader payload buffer

payloadSize

uint32

Size in byte of the compiled module

shaderStage

integer

The shader stage

usedBindings

uint64

Bindings used by this module

nodeDataDescriptor

array[object]

Optional data descriptor, used for render graph node shaders

Parameter description

name

string

Parameter name

categories

array[string]

Categories

default

numberstringbooleanarray[number]

Parameter default value

nativeType

Parameter native type

type

Parameter type

optGlobalGroupMultiplier

array[float]

Compute shader local group count

optGlobalGroupReference

0render_target_automatic_split1render_target_exact2output_render_target_exact3instances_buffer4point_cloud_input_buffer

Compute shader local group count

payloadSize

uint32

The size in byte of the compiled shader code (accumulated size of all modules)

shaderStages

uint32

A shader is composed of potentially multiple modules

vertexDescriptor

array[object]

Vertex description, used only when a vertex shader module is present

Description of a vertex attribute

binding

uint32

Binding number

format

integer

Format

location

uint32

Location

offset

uint32

Default:0

Offset

semantic

1position2normal4tex_coord8skin_bone_ids16skin_weights32custom

Semantic

stride

uint32

Stride between consecutive elements within the buffer