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 debug printf doesn't work as expected #132

Closed
Inori opened this issue Jun 7, 2022 · 2 comments
Closed

Shader debug printf doesn't work as expected #132

Inori opened this issue Jun 7, 2022 · 2 comments

Comments

@Inori
Copy link
Owner

Inori commented Jun 7, 2022

As state by the comments:

There may be some bugs for current implementation
(or bugs for validation layer, I'm not sure),
It can not print more than one debug string,
and even worse, the validation layer always complains 
buffer size not enough even I provide 65536 bytes.
And crashes randomly.
I've compared the spir-v code generated by
this function and glslc compiler, and I see
no difference, so I don't know why by now.
@Inori
Copy link
Owner Author

Inori commented Jun 11, 2022

Problem solved.
What we need is just a very big printf buffer.

@Inori Inori closed this as completed Jun 11, 2022
@Inori
Copy link
Owner Author

Inori commented Jun 11, 2022

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

No branches or pull requests

1 participant