KrDataBlock::Append(std::string) now correctly handles null termination in output KRDataBlock when used multiple times. Implemented KrGetResourceData API call. KrCompileAllShaders now outputs shader compilation logs as a KRResource. kraken_convert now outputs shader compile logs when failure occurs.
This commit is contained in:
@@ -40,6 +40,8 @@
|
||||
#include "KRContextObject.h"
|
||||
#include "KRDataBlock.h"
|
||||
|
||||
class KRUnknown;
|
||||
|
||||
class KRShaderManager : public KRResourceManager {
|
||||
public:
|
||||
KRShaderManager(KRContext &context);
|
||||
@@ -53,7 +55,7 @@ public:
|
||||
KRShader *load(const std::string &name, const std::string &extension, KRDataBlock *data);
|
||||
KRShader *get(const std::string &name, const std::string &extension);
|
||||
|
||||
bool compileAll();
|
||||
bool compileAll(KRUnknown* logResource);
|
||||
|
||||
const unordered_map<std::string, KRShader *> &get(const std::string &extension);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user