-
Notifications
You must be signed in to change notification settings - Fork 195
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
Add debugPrintf to wgsl #2563
Add debugPrintf to wgsl #2563
Conversation
fbae219
to
751ca91
Compare
I'm disabling the test for hlsl-out since dxc doesn't support printf when outputting dxil. I'll keep the hlsl-out feature in since it still does work with fxc, and with dxc when targeting spirv. |
DXC doesn't support printf when targeting dxil, disable the test to allow CI to pass.
If I understand our plan correctly, I think this needs a bit in |
Tragically, Mesa doesn't support |
It's working on my machine with I also have a local patch to wgpu that enables
I'll try to figure this out, currently no other |
Moved to gfx-rs/wgpu#4297
We can have printf in shaders :)
Supports wgsl-in, spv-in, spv-out, hlsl-out, glsl-out
Supporting glsl-in would need changes upstream in https://github.com/Kangz/glslpp-rs/ to parse the format strings.
msl has no support for this sort of feature as far as I can tell.
for more info see: https://github.com/KhronosGroup/Vulkan-ValidationLayers/blob/main/docs/debug_printf.md
cc: gfx-rs/wgpu#4410