Skip to content

Commit

Permalink
Merge pull request #104 from tcdude/version4lib
Browse files Browse the repository at this point in the history
Add possibility to specify the shaderlang version
  • Loading branch information
RobDangerous committed Jun 22, 2023
2 parents 16b4950 + 5abc9ac commit 97fe1c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/krafix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1240,15 +1240,15 @@ int compileWithTextureUnits(const char* targetlang, const char* from, std::strin
return errors;
}

extern "C" int krafix_compile(const char* source, char* output, int* length, const char* targetlang, const char* system, const char* shadertype) {
extern "C" int krafix_compile(const char* source, char* output, int* length, const char* targetlang, const char* system, const char* shadertype, int version) {
// Reset fail states
CompileFailed = false;
LinkFailed = false;

std::string defines;
std::vector<int> textureUnitCounts;
bool instancedoptional = false;
int version = -1;
// int version = -1;
bool getversion = false;
bool relax = false;

Expand Down

0 comments on commit 97fe1c4

Please sign in to comment.