-
Notifications
You must be signed in to change notification settings - Fork 395
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
khronos_validation.printf_to_stdout
seems not work
#4074
Comments
OK, I figured it out. In short, |
I'm not quite sure what you are seeing. With everything set to default, you should see debug printf messages, among other messages, going to the Debug Utils callback. This looks like your second screenshot above - notice that the extra debug information when the printfs go through the callback. With everything set to default, except for khronos_validation.printf_to_stdout = true you should see all but the debug printf messages going to the callback, and debug printf messages going to stdout This looks like your first screenshot where only the debug printf text is sent and no debug info is attached. You shouldn't need to change khronos_validation.debug_action from it's default to see debug printf messages on stdout or in the callback. I do see that some of your shaders are failing validation. Debug printf will not instrument shaders that fail validation, and you won't get any debug printf messages from them when they run. The value of printf_to_stdout should have no effect on the buffer size required to receive debug printf messages. Aside from validation messages being printed from your callback with your cerr line commented out, which I can't explain, it looks like everything is working as expected. |
Ok, I see, thanks for your reply. |
@Inori I'm on break this week but I should be able to more closely consider your first issue early next week. As for not receiving subsequent messages, there is only one debug printf buffer per draw, so if previous messages exhaust the available memory, subsequent messages will not appear - could that be what's happening? |
Limit message count using invocation ID together with a very big |
khronos_validation.printf_to_stdout
seems not work on my machine.The validation messages shows that I'm using the correct settings file and other options works right (like
khronos_validation.enables
).Only the
printf_to_stdout
seems doesn't make sense.Whether I set it to
true
orfalse
, I got debug messages from both debug callback and stdout.Vulkan SDK version: 1.3.211.0
printf_to_stdout = true
:printf_to_stdout = false
:I've already commented out
std::cerr
line in my debug callback (and yes I've registered it and it is getting called), I should expect no output, right?Originally posted by @Inori in #2464 (comment)
The text was updated successfully, but these errors were encountered: