Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more logging to D3D9 shader validation #4587

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

doitsujin
Copy link
Owner

@doitsujin doitsujin commented Jan 6, 2025

If something fails, print the entire instruction as dwords.

@doitsujin doitsujin marked this pull request as ready for review January 9, 2025 17:32
Comment on lines +195 to +199
for (uint32_t i = 0; i < InstrLength; i++) {
Message += str::format(i ? "," : " [",
std::hex, std::setfill('0'), std::setw(8), pInstr[i],
i + 1 == InstrLength ? "]" : "");
}
Copy link
Contributor

@WinterSnowfall WinterSnowfall Jan 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than appending the message, it's better to just use a separate string for a debug logger here, since the callback error message will be outputted as a warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants