UNPKG

pixi.js

Version:

<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">

22 lines (21 loc) 979 B
import type { Attribute } from '../../../shared/geometry/Geometry'; /** * This interface represents the extracted attribute data from a WebGL program. * It extends the `Attribute` interface but omits the `buffer` property. * It includes an optional `location` property that indicates where the shader location is for this attribute. * @category rendering * @advanced */ export interface ExtractedAttributeData extends Omit<Attribute, 'buffer'> { /** set where the shader location is for this attribute */ location?: number; } /** * returns the attribute data from the program * @private * @param {WebGLProgram} [program] - the WebGL program * @param {WebGLRenderingContext} [gl] - the WebGL context * @param sortAttributes * @returns {object} the attribute data for this program */ export declare function extractAttributesFromGlProgram(program: WebGLProgram, gl: WebGLRenderingContextBase, sortAttributes?: boolean): Record<string, ExtractedAttributeData>;