summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang/slang_link.h
AgeCommit message (Collapse)Author
2008-09-16mesa: rework GLSL vertex attribute bindingBrian Paul
Calls to glBindAttribLocation() should not take effect until the next time that glLinkProgram() is called. gl_shader_program::Attributes now just contains user-defined bindings. gl_shader_program::VertexProgram->Attributes contains the actual/final bindings.
2007-10-26Re-implement GLSL texture sampler variables.Brian
GLSL sampler variables indicate which texture unit to use for TEX instructions. Previously, this was baked into the fragment/vertex program and couldn't be readily changed once set. Now, SamplerUnits[] array indicates which texture unit is to be used for each sampler variable. These values are set with glUniform1i(). This is extra state that must be passed to the fragment/vertex program executor at runtime.
2007-02-16s/_slang_link2/_slang_link/Brian
2007-02-02remove old linker stuffBrian
2007-02-02Remove all dependencies on the old slang interpreter/executor.Brian
2007-01-09Implement vertex attribute binding.Brian
Users can set explicit binding with glBindAttribLocation(), otherwise the linker will allocate generic attribute slots.
2007-01-05Checkpoint glsl compiler work: sampler uniforms now implemented, linked ↵Brian
properly.
2006-12-19Clean-up and re-org of the main GLSL object types.Brian
Use the gl_shader struct as it should be. Renamed gl_linked_program to gl_shader_program. Store both shaders and programs in the same hash table and use the Type field to distinguish them.
2006-12-15use MAX_VARYINGBrian
2006-12-13Checkpoint new GLSL compiler back-end to produce fp/vp-style assembly ↵Brian
instructions.
2006-11-03reformat comments in Doxygen styleBrian Paul
2006-10-13Indent and cosmetic changes.Michal Krol
2006-05-16Fix attrib handling.Michal Krol
2006-04-25Remove carriage returns.Michal Krol
2006-04-18Add support for ARB_vertex_shader attrib binding and query.Michal Krol
Clean-up ARB_shaderobjects code a bit.
2006-04-04More GLSL code:Michal Krol
- add support for varyings; GLSL fixes: - pow was wrongly computed in x86 back-end;
2006-03-15rename enums, fixes compilation breakage (Michal Krol)Brian Paul
2006-03-14More GLSL code:Michal Krol
- add texture sampling support; - fix assembly codegen bugs;
2006-02-27silence a bunch of warningsBrian Paul
2006-02-27More GLSL code:Michal Krol
- add x86 code generator; - add full support for uniforms in ARB_shader_objects; - add assembly instruction: global_addr; - reorganize #includes; - built-in uniforms accessed by index, rather than by name; - add some entries to x86sse rtasm; - add configurations to VC6 projects: 'Release x86' and 'Debug x86'; - #define SLANG_X86 active only on VC6 x86 builds; - introduce code export table for a shader; - remove GNU license from the noise library;
2006-02-21More GLSL code:Michal Krol
- uniforms (only GetLocation, Uniform1f and Uniform4fv for now for demos); - fix bugs and optimize array size handling; - 2D texture sampling (needs Enable(TEXTURE_2D) to work); - decrease built-in library assembly size by 30%.