Added UI functionality to the Graphics System #232

Merged
Xenosas1337 merged 40 commits from UI_Integration into main 2022-11-20 15:43:34 +08:00
6 changed files with 8 additions and 2 deletions
Showing only changes of commit 4eb5fa64e0 - Show all commits

View File

@ -55,7 +55,7 @@ vec2 CreateQuad(in uint vertexID)
void main()
{
// write EID data to FS
Out2.eid = testPushConstats.eid;
Out2.eid = testPushConstant.eid;
// local variable for font index
uint fontIndex = glyphIndex;

Binary file not shown.

View File

@ -349,7 +349,13 @@ namespace SHADE
auto const ext{ path.extension().string() };
if (ext == GLSL_EXTENSION.data())
{
newPath = SHShaderSourceCompiler::LoadAndCompileShader(path).value();
auto value { SHShaderSourceCompiler::LoadAndCompileShader(path) };
if (!value.has_value())
{
SHLOG_ERROR("Shader compile failed: {}", path.string());
return;
}
newPath = value.value();
}
else if (ext == GLTF_EXTENSION.data() || ext == FBX_EXTENSION.data())
{