1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-08-05 08:26:28 +00:00

Offers a less error-prone route to attribute binding.

This commit is contained in:
Thomas Harte
2019-01-25 21:56:55 -05:00
committed by Thomas Harte
parent 73e32a9c76
commit 85ad490089
3 changed files with 38 additions and 14 deletions

View File

@@ -179,12 +179,12 @@ std::unique_ptr<Shader> ScanTarget::composition_shader() const {
vertex_shader,
fragment_shader + "}",
{
{"startDataX", 0},
{"startClock", 1},
{"endDataX", 2},
{"endClock", 3},
{"dataY", 4},
{"lineY", 5},
"startDataX",
"startClock",
"endDataX",
"endClock",
"dataY",
"lineY",
}
));
}
@@ -491,14 +491,14 @@ std::unique_ptr<Shader> ScanTarget::conversion_shader() const {
vertex_shader,
fragment_shader,
{
{"startPoint", 0},
{"endPoint", 1},
{"startClock", 2},
{"endClock", 3},
{"lineY", 4},
{"lineCompositeAmplitude", 5},
{"startCompositeAngle", 6},
{"endCompositeAngle", 7},
"startPoint",
"endPoint",
"startClock",
"endClock",
"lineY",
"lineCompositeAmplitude",
"startCompositeAngle",
"endCompositeAngle"
}
);