API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classShaderAttribute
Metadata for a single vertex attribute declared in a GLSL vertex shader. Populated by the backend during Shader.connect using the values returned by `gl.getActiveAttrib`. The `size` field is derived from `type` via the backend's primitive-byte-size mapping and is used to stride vertex buffer layouts.
import { ShaderAttribute } from '@codexo/exojs' Metadata for a single vertex attribute declared in a GLSL vertex shader.
Populated by the backend during Shader.connect using the values returned by `gl.getActiveAttrib`. The `size` field is derived from `type` via the backend's primitive-byte-size mapping and is used to stride vertex buffer layouts.
new(index: number, name: string, type: number): ShaderAttribute destroy(): void index: number location: number name: string size: number type: number