Skip to main content

Function: getLogicalBufferSlots()

getLogicalBufferSlots(shaderLayout, bufferLayout): Record<string, number>

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

Maps logical buffer names to the vertex-array slots implied by a buffer layout.

Parameters​

shaderLayout​

ShaderLayout

Shader-side attribute declarations.

bufferLayout​

BufferLayout[]

Buffer-to-attribute mapping declarations.

Returns​

Record<string, number>

Vertex-array slot indexes keyed by logical buffer name.