diff options
author | David Thompson <dthompson2@worcester.edu> | 2014-09-22 20:56:29 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2014-09-22 20:56:29 -0400 |
commit | 18dea2e0191c1fa87a29d637f2f769c2d310c4d3 (patch) | |
tree | cec395f078f4456d28f4d79ca8bfccdf28fe384f /INSTALL.org | |
parent | fad1c967f7f5c754d1209e444ab7ca3e20766060 (diff) |
shader: Cache locations of uniforms/attributes at shader compile-time.
* sly/shader.scm (<uniform>, <attribute>): New data types.
(make-uniform, uniform?, uniform-name, uniform-location,
make-attribute, attribute?, attribute-name, attribute-location,
shader-program-uniforms, shader-program-attributes,
shader-program-uniform-location, shader-program-attribute-location):
New procedures.
(%display-linking-error, %shader-program-linked, uniform-location,
attribute-location): Delete procedures.
(make-shader-program): Look up locations of uniforms/attributes.
(load-shader-program): Add uniforms and attributes parameters.
(load-default-shader): Specify uniforms and attributes.
(uniform-set!): Use shader-program-uniform-location.
Diffstat (limited to 'INSTALL.org')
0 files changed, 0 insertions, 0 deletions