Skip to content

Commit

Permalink
deprecate glslc
Browse files Browse the repository at this point in the history
  • Loading branch information
harry7557558 committed Jun 8, 2024
1 parent 7ca036b commit 48b9976
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 83 deletions.
5 changes: 0 additions & 5 deletions complex3/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ document.body.onload = function (event) {
// .concat(BuiltInMathFunctions.rawMathFunctionsC)
.concat(BuiltInMathFunctions.rawMathFunctionsR)
);
// MathFunctions['zeta'][1].langs.glslc = "mc_zeta_fast(%1)";
// for (var i = 0; i < 3; i++) {
// var funname = ['logzeta', 'lnzeta', 'lzeta'][i];
// MathFunctions[funname][1].langs.glslc = "mc_lnzeta_fast(%1)";
// }
MathParser.IndependentVariables = {
'z_real': "z_real",
'z_imag': "z_imag",
Expand Down
37 changes: 1 addition & 36 deletions scripts/codegen.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let CodeGenerator = {
@inherit: inherit math function definitions from these languages if not specified
@extensions: additional required functions/definitions, don't inherit
*/
langsOrder: ['glsl', 'glslc', 'cppf', 'cppd', 'js'],
langsOrder: ['glsl', 'cppf', 'cppd', 'js'],
langs: {}
};

Expand Down Expand Up @@ -289,41 +289,6 @@ CodeGenerator.langs.glsl = {
],
};

// complex-valued GLSL
CodeGenerator.langs.glslc = {
inherit: [],
config: null,
presets: {
complex: {
fun: "vec2 {%funname%}(vec2 z) {\n\
{%funbody%}\n\
return {%val%};\n\
}",
prefix: 'v',
def: " vec2 {%varname%} = {%expr%};",
joiner: "\n"
},
},
extensions: [
{
name: 'mc_gamma',
source: ""
},
{
name: 'mc_lgamma',
source: ""
},
{
name: 'mc_zeta',
source: "#define NO_AA"
},
{
name: 'mc_lzeta',
source: "#define NO_AA"
}
],
};

// C++, float
CodeGenerator.langs.cppf = {
inherit: ['glsl'],
Expand Down
Loading

0 comments on commit 48b9976

Please sign in to comment.