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

Allow library users to print DXC errors. #68

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

photex
Copy link
Contributor

@photex photex commented Dec 12, 2024

As mentioned in #67 removing this line allows me to print the dxc compiler output.

@@ -835,7 +835,6 @@ static void *SDL_ShaderCross_INTERNAL_CreateShaderFromHLSL(
&bytecodeSize);

if (spirv == NULL) {
SDL_SetError("%s", "Failed to compile SPIR-V!");
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a comment here along the lines of Error has already been set?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, yes good catch. Done.

@thatcosmonaut thatcosmonaut merged commit f485e45 into libsdl-org:main Dec 12, 2024
5 checks passed
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.

3 participants