]> Chaos Git - corbenik/ctrulib.git/commit
Several improvements to shaderProgram, see details:
authorfincs <fincs.alt1@gmail.com>
Fri, 20 Nov 2015 23:49:33 +0000 (00:49 +0100)
committerfincs <fincs.alt1@gmail.com>
Fri, 20 Nov 2015 23:49:33 +0000 (00:49 +0100)
commit59231120822511a1c760dd09f6c39e22daeeda05
tree6d6d05a8a632d4320418866ffb150bd1f1641e9b
parent10c7711ce5526617ff1778fcd8cbcdd921807dac
Several improvements to shaderProgram, see details:

- shaderProgramSetGshInputPermutation() was added
- shaderInstanceGetUniformLocation() return type corrected
- shaderInstanceSetBool bug fixed (true/false were incorrectly mapped)
- shaderInstance now has bitmasks indicating which int/bool uniforms are
  used by int/bool constants in the DVLE
- shaderProgramUse() was revamped:
  - Shader unit setup/code/opdesc upload code was separated into a new
    function called shaderProgramConfigure()
  - shaderProgramUse() calls shaderProgramConfigure() and afterwards
    uploads DVLE constants
  - GPU wrappers that perform uniform management will want to use
    shaderProgramConfigure() instead of shaderProgramUse() and later
    read the shaderInstance uniform usage bitmasks to set the constants.
libctru/include/3ds/gpu/registers.h
libctru/include/3ds/gpu/shaderProgram.h
libctru/source/gpu/shaderProgram.c