openframeworks / openframeworks/openFrameworks

Feature Request: For ofShader Add UBO (Uniform Buffer Object)

Open
#2,050 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

core feature section-2D
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.