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

sokol_gfx.h d3d11: add sg_desc.d3d11_shader_debugging bool flag #1101

Merged
merged 3 commits into from
Sep 1, 2024

Conversation

floooh
Copy link
Owner

@floooh floooh commented Sep 1, 2024

Fixes: #1043

Basically call sg_setup() like this:

    sg_setup(&(sg_desc){
        .environment = sglue_environment(),
        .logger.func = slog_func,
        .d3d11_shader_debugging = true,
    });

...and then just make sure to feed HLSL source code into sg_make_shader() instead of bytecode (e.g. when using sokol-shdc, omit the -b / --bytecode cmdline option.

@floooh floooh merged commit 189843b into master Sep 1, 2024
63 checks passed
@floooh floooh deleted the issue1043-d3d11-shader-debugging branch September 1, 2024 13:46
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.

Best way of enabling shader debugging for D3D11?
1 participant