cginternals / cginternals/gloperate

Generic function wrapper stage

Open
#264 1 comment 0 reactions 0 assignees View on GitHub
requires decision
Dominant language
C++
Stars
43
Forks
24
PR merge metrics
No merged PRs in 30d

Description

Add a Stage that wraps a given function of the form `OutputType(InputType)`. This would reduce the boilerplate code required to write simple stages with one input and one output (generically named "input" and "output").:
```
// processing function
GLuint limitMSAA(GLuint numMultisamples);

// Stage declaration
using LimitMSAAStage = FunctionStage;

// Alternative declaration of a creator function with Input/Output type deduction
static const auto limitMSAAStage = stageCreator(limitMSAA);
```

Could be extended/overloaded for functions with 2, 3, 4 inputs.

(Already have some code for this)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.