Merge pull request #1888 from Roy-AMD/Adjusting-code-interface
Adjusting code interface
This commit is contained in:
commit
696703800e
5 changed files with 243 additions and 227 deletions
|
|
@ -487,6 +487,8 @@ public:
|
|||
environment.target.version = version;
|
||||
}
|
||||
|
||||
void getStrings(const char* const* &s, int& n) { s = strings; n = numStrings; };
|
||||
|
||||
#ifdef ENABLE_HLSL
|
||||
void setEnvTargetHlslFunctionality1() { environment.target.hlslFunctionality1 = true; }
|
||||
bool getEnvTargetHlslFunctionality1() const { return environment.target.hlslFunctionality1; }
|
||||
|
|
@ -773,7 +775,7 @@ public:
|
|||
TProgram();
|
||||
virtual ~TProgram();
|
||||
void addShader(TShader* shader) { stages[shader->stage].push_back(shader); }
|
||||
|
||||
std::list<TShader*>& getShaders(EShLanguage stage) { return stages[stage]; };
|
||||
// Link Validation interface
|
||||
bool link(EShMessages);
|
||||
const char* getInfoLog();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue