Interface RenderMaterialAttributes

Defines the geometry attributes that a RenderMaterial should send to the render pipeline

interface RenderMaterialAttributes {
    wgslStructFragment?: string;
    vertexBuffers?: VertexBuffer[];
    layoutCacheKey?: string;
}

Properties

wgslStructFragment?: string

WGSL structure code fragment containing the attributes to use as vertex shader inputs

vertexBuffers?: VertexBuffer[]

Array of vertex buffers to send to the render pipeline

layoutCacheKey?: string

A string representing the Geometry vertex buffers layout, used for render pipelines caching