API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classShaderAttribute
@codexo/exojs / rendering / stable
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.
5
props
1
methods
0
events
Import
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.
Constructors 1
new(index: number, name: string, type: number): ShaderAttribute Methods 1
destroy(): void Properties 5
index: number location: number name: string size: number type: number Source