Add support for vertex state programs (VSP) #16
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is the first step towards better vertex shader support.
It will allow for testing and researching vertex shaders in the future.
Some changes are necessary / wise:
assert(false);
for GL_VERTEX_STATE_PROGRAM_NV and addition of constant writesIssues to be created after merge (as these were not too easy to test until now and still need a bit of work / research / discussion):
Confirm R12 still works correctly (is it writeable in our implementation?)Confirm if index for constant writes is correct (also check if relative indexing through A0.x works; with stand-alone indexed writes and if two things happen at once: indexed read + indexed write)Should constant indexing work from 0 to 192 or from -96 to +95? (What happens in the different GPU modes?)Done (Issues 17 to 19)