Updated DX11 Bindings

This commit is contained in:
Simon Lübeß
2022-04-09 12:34:28 +02:00
parent 604e34a12a
commit c7fde476e8
2 changed files with 2 additions and 2 deletions
@@ -46,7 +46,7 @@ namespace GlitchyEngine.Renderer
var result = D3DCompiler.D3DCompile(code.CStr(), (.)code.Length, null, nativeMacros, null, entryPoint, target, compileFlags, .None, &shaderBlob, &errorBlob); var result = D3DCompiler.D3DCompile(code.CStr(), (.)code.Length, null, nativeMacros, null, entryPoint, target, compileFlags, .None, &shaderBlob, &errorBlob);
if(result.Failed) if(result.Failed)
{ {
StringView str = StringView((char8*)errorBlob.GetBufferPointer(), errorBlob.GetBufferSize()); StringView str = StringView((char8*)errorBlob.GetBufferPointer(), (int)errorBlob.GetBufferSize());
Log.EngineLogger.Error($"Failed to compile Shader: Error Code({(int)result}): {result} | Error Message: {str}"); Log.EngineLogger.Error($"Failed to compile Shader: Error Code({(int)result}): {result} | Error Message: {str}");
} }
} }