Skip to main content

Function: getBufferLayoutMinAttributeLocation()

getBufferLayoutMinAttributeLocation(bufferLayout, shaderLayout): number

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

Returns the minimum attribute location referenced by a logical buffer layout.

Parameters​

bufferLayout​

BufferLayout

One logical buffer layout.

shaderLayout​

ShaderLayout

Shader-side attribute declarations.

Returns​

number

The lowest shader location referenced by the layout.