-
Notifications
You must be signed in to change notification settings - Fork 1
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 Printf in HLSL and DX12 #14
Comments
Awesome write up! |
Thanks for the article! I am trying to implement this in my engine, however I get compiler errors when trying to use indexing to string literal: |
Slightly less cursed(?) way to get the char code
|
Hey @mateeeeeee, yeah it looks like you need to pass the character to a templated function first for the comparison to work. I imagine that's a side effect of how |
@gevahn ha nice, I didn't think of that! I guess that's at least more compact than what I came up with. |
@TheRealMJP thanks for the answer. It seems my issue was using DXC_ARG_SKIP_OPTIMIZATIONS (-Od). MRE that shows the issue here |
Shader Printf in HLSL and DX12
https://therealmjp.github.io/posts/hlsl-printf/
The text was updated successfully, but these errors were encountered: