Skip to content

Commit

Permalink
Merge branch 'main' of ssh://github.com/Kode/krafix
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Oct 4, 2023
2 parents 7b0d8ff + 97fe1c4 commit 8db42c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions Sources/MetalStageInTranslator.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <unordered_map>
#include <string>
#include <sstream>
#include <cstdint>


namespace krafix {
Expand Down
2 changes: 2 additions & 0 deletions Sources/SpirVTranslator.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#include "Translator.h"

#include <cstdint>

namespace krafix {
class SpirVTranslator : public Translator {
public:
Expand Down
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 8db42c5

Please sign in to comment.