Skip to main content

Function: resolveLogicalAttributeMappings()

resolveLogicalAttributeMappings(shaderLayout, bufferLayout, options?): LogicalAttributeMapping[]

Defined in: modules/core/src/adapter-utils/buffer-layout-utils.ts:113

Resolves backend-agnostic logical attribute mappings from a shader layout and buffer layout.

Parameters

shaderLayout

ShaderLayout

Shader-side attribute declarations.

bufferLayout

BufferLayout[]

Buffer-to-attribute mapping declarations.

options?

ResolveLogicalAttributeMappingsOptions

Optional warning controls.

Returns

LogicalAttributeMapping[]

One logical mapping per shader attribute, ordered by shader location.