New shader compiler app (doing nothing) that i forgot to submit...

This commit is contained in:
2025-03-01 11:02:10 -05:00
parent 67528aaee1
commit fc399d52ec
4 changed files with 469 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
//#include <Core/Common/CoreTypes.h>
//#include <Core/Logging/LogManager.h>
//#include <Core/Logging/LogTypes.h>
// Must be before everything else.
// Cannot include DX12Includes because we redefine everything.
// TODO : Separate lib
// TODO : Only when not shipping
// Check if we just load the dll and not link against?
//#include <DXCompiler.h>
//#pragma comment(lib, "dxcompiler.lib")
//using namespace Juliet;
void Compile()
{
// IDxcCompiler3* compiler = nullptr;
// DxcCreateInstance(&CLSID_DxcCompiler, IID_IDxcCompiler3, reinterpret_cast<void**>(&compiler));
//
// IDxcUtils* utils = nullptr;
// DxcCreateInstance(&CLSID_DxcUtils, &IID_IDxcUtils, reinterpret_cast<void**>(&utils));
//
// if (compiler == nullptr)
// {
// Juliet::Log(LogLevel::Error, LogCategory::Graphics, "Cannot create DXCompiler instance");
// }
//
// if (utils == nullptr)
// {
// Log(LogLevel::Error, LogCategory::Graphics, "Cannot create IDxcUtils instance");
// compiler->lpVtbl->Release(compiler);
// }
//
// IDxcIncludeHandler* includeHandler;
// utils->lpVtbl->CreateDefaultIncludeHandler(utils, &includeHandler);
// if (includeHandler == nullptr)
// {
// compiler->lpVtbl->Release(compiler);
// utils->lpVtbl->Release(utils);
// }
}
int main(int argc, char* argv[])
{
return 0;
}