1 year ago

#364501

test-img

Beomseo Choi

DirectX 12 D3DCompileFromFile doesn't work

I'm learning DirectX 12. I got an error at D3DCompileFromFile() function.

    void Shader::CompileShader(const std::wstring& path, const std::string& name, const std::string& version, ID3DBlob* shaderBlob) {
#if defined(_DEBUG)
    // Enable better shader debugging with the graphics debugging tools.
    UINT compileFlags = D3DCOMPILE_DEBUG | D3DCOMPILE_SKIP_OPTIMIZATION;
#else
    UINT compileFlags = 0;
#endif

    ThrowIfFailed(D3DCompileFromFile(path.c_str(), nullptr, D3D_COMPILE_STANDARD_FILE_INCLUDE, name.c_str(), version.c_str(), compileFlags, 0, &shaderBlob, &mErrBlob));
}

mErrBlob said "Information not available, no symbols loaded for D3DCompiler_47.dll"

enter image description here

So I checked Microsoft Symbol Server option at Debug-Options-Debugging-Symbols. And then I got another error from mErrBlob which is "No type information available in symbol file for D3DCompiler_47.dll"

HRESULT value is E_FAIL.

enter image description here

I don't know anymore how to fix this error.

c++

visual-studio-2019

directx-12

0 Answers

Your Answer

Accepted video resources