<vertex-array> ( vertex-buffer program-instance -- vertex-array )
GPU-accelerated rendering > Shader objects

Prev:<vertex-array*> ( vertex-buffer program-instance format -- vertex-array )
Next:VERTEX-FORMAT:


Vocabulary
gpu.shaders

Inputs and outputs
vertex-buffera buffer or buffer-ptr
program-instancea program-instance
vertex-arraya vertex-array


Word description
Creates a new vertex-array from the entire contents of a single buffer for use with a program-instance. The data in buffer is taken in the first vertex-format specified in the program instance's originating GLSL-PROGRAM: definition. If the program has no associated vertex formats, an error will be thrown. To specify a different vertex format, use <vertex-array*>.

See also
vertex-array, <multi-vertex-array>, <vertex-array*>

Definition