Closed qzhan15 closed 8 years ago
ComPtr byteCode = nullptr; ComPtr errors; hr = D3DCompileFromFile(filename.c_str(), defines, D3D_COMPILE_STANDARD_FILE_INCLUDE, entrypoint.c_str(), target.c_str(), compileFlags, 0, &byteCode, &errors);
Should I parse byteCode->GetAddressOf() and errors->GetAddressOf() instead of &byteCode and &error? since these are ComPtr type
checked msdn, this is not a issue
What resolved this for you? I am getting an error here and do not know how to fix it.
ComPtr byteCode = nullptr;
ComPtr errors;
hr = D3DCompileFromFile(filename.c_str(), defines, D3D_COMPILE_STANDARD_FILE_INCLUDE,
entrypoint.c_str(), target.c_str(), compileFlags, 0, &byteCode, &errors);
Should I parse byteCode->GetAddressOf() and errors->GetAddressOf() instead of &byteCode and &error? since these are ComPtr type