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

Shader cache bug fix request #799

Closed
Przemog1 opened this issue Dec 6, 2024 · 0 comments · Fixed by #800
Closed

Shader cache bug fix request #799

Przemog1 opened this issue Dec 6, 2024 · 0 comments · Fixed by #800
Labels
bug Something isn't working

Comments

@Przemog1
Copy link
Contributor

Przemog1 commented Dec 6, 2024

Describe the bug

Shader cache doesn't always update

Steps to Reproduce

  1. compile example 62_CAD
  2. add some code to a builtin file used by the vertex shader of example 62, which will break HLSL compilation, but not C++ compilation. For example in the file nbl\builtin\hlsl\math\equations\quadratic.hlsl add:
#ifdef __HLSL_VERSION
fjlksad;fjslakdfj
#endif
  1. delete shader cache file and compile again

Expected vs observed behavior

After step 2. compilation should fail, but it doesn't and changes to the nbl\builtin\hlsl\math\equations\quadratic.hlsl take no effect..
After step 3. compilation fails, as it should.

This bug doesn't effect every file, for example I couldn't reproduce this bug with nbl\builtin\hlsl\math\equations\limits.hlsl.

Environment

  • OS:
  • CPU:
  • GPU:
  • GPU driver version:
  • Compiler:
  • branch: master
  • commit hash: e8f4dca
@Przemog1 Przemog1 added the bug Something isn't working label Dec 6, 2024
alichraghi added a commit that referenced this issue Dec 9, 2024
Signed-off-by: Ali Cheraghi <alichraghi@proton.me>
@alichraghi alichraghi mentioned this issue Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant