LogoPixi’VN
pixi-jsFunctions

Function: extractAttributesFromGpuProgram()

> extractAttributesFromGpuProgram(root0): Record<string, ExtractedAttributeData>

Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/extractAttributesFromGpuProgram.d.ts:14

Internal

Extracts vertex attributes from a WGSL shader program.

Supports two styles:

  1. Inline @location decorators in function parameters
  2. Struct-based input where @location decorators are in the struct definition

Parameters

root0

ProgramSource

Returns

Record<string, ExtractedAttributeData>