Skip to content

Conversation

@Spodi
Copy link
Contributor

@Spodi Spodi commented Oct 25, 2025

Still a draft because I'm unsure about the ThrowWithMessage addition. Also everything feels hacked together somehow...

Loose follow up to #497

  • fix DEVICE_DRAW_RESOURCE_SAMPLE_COUNT_MISMATCH
    we are already using shader model 4.1 for that, so we can just use the unsized version of Texture2DMS (probably not even needed, but the debug layer shuts up now)

  • add ThrowWithMessage
    similar to ThrowIfFaled, but not bound to an actual thing failing (should this be done different?)

  • check GPU for ComputeShader support and throw a slightly more useful message if not supported (maybe this solves our feature level mystery?).
    EDIT: It does! The error is triggered on Intel HD graphics 3000.

SoH build: HarbourMasters/Shipwright#5888

Fix D3D Debug layer complaining about:
D3D11 ERROR: ID3D11DeviceContext::Dispatch: The Shader Resource View in slot 0 of the Compute Shader unit has a sample count of 4, but the shader expects the sample count to be 2. This is invalid if the shader actually uses the view (e.g. it is not skipped due to shader code branching). [ EXECUTION ERROR Kenix3#421: DEVICE_DRAW_RESOURCE_SAMPLE_COUNT_MISMATCH]
Throw a slightly more useful message if not supported
@Spodi Spodi force-pushed the check-ComputeShaders-compat branch from 3ef800c to 33c1203 Compare November 11, 2025 20:25
@Spodi Spodi force-pushed the check-ComputeShaders-compat branch from 33c1203 to 8eb3130 Compare November 11, 2025 20:26
@Spodi Spodi marked this pull request as ready for review December 15, 2025 12:02
@Spodi Spodi marked this pull request as draft December 15, 2025 12:02
@Spodi
Copy link
Contributor Author

Spodi commented Dec 15, 2025

Closes in favor of #967

@Spodi Spodi closed this Dec 15, 2025
@Spodi Spodi deleted the check-ComputeShaders-compat branch December 28, 2025 01:09
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.

1 participant