openframeworks / openframeworks/openFrameworks
Feature Request: For ofShader Add UBO (Uniform Buffer Object)
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
http://www.opengl.org/registry/specs/ARB/uniform_buffer_object.txt
http://www.opengl.org/wiki/Uniform_Buffer_Object
for example:
enum _ofUboDataType
{
OF_UBO_DATA_TYPE_INT,
OF_UBO_DATA_TYPE_FLOAT,
OF_UBO_DATA_TYPE_INT_ARRAY,
OF_UBO_DATA_TYPE_FLOAT_ARRAY,
OF_UBO_DATA_TYPE_2INT_ARRAY,
OF_UBO_DATA_TYPE_2FLOAT_ARRAY,
OF_UBO_DATA_TYPE_3INT_ARRAY,
OF_UBO_DATA_TYPE_3FLOAT_ARRAY,
};
ofShader::setUBO()
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the linked ARB uniform buffer object specification and wiki, then inspect the existing ofShader API. Done means defining the requested UBO data types and adding the ofShader::setUBO feature described in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100