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

Issues debugging shaders #19

Closed
DScorgie opened this issue Mar 4, 2014 · 2 comments
Closed

Issues debugging shaders #19

DScorgie opened this issue Mar 4, 2014 · 2 comments
Labels
Bug A crash, misbehaviour, or other problem

Comments

@DScorgie
Copy link

DScorgie commented Mar 4, 2014

Hi,

There are a couple of issues I encountered while having a first look at RenderDoc:

  • Integer shader inputs seem to be only displayable as float (in the "Constants & Resources" window)
  • Switch statements do not seem to work correctly when debugging shaders. It seems the first case is always taken, regardless of the switch value.

See attached image for examples of both issues - the v2.x here is (int) 3, so should take the 'default' path, but is instead taking the '0'th case.
renderdoc

@baldurk baldurk added this to the Release v0.19 milestone Mar 4, 2014
@baldurk
Copy link
Owner

baldurk commented Mar 4, 2014

This is a developer's dream bug report, simple and obvious, thank you :).

@baldurk
Copy link
Owner

baldurk commented Mar 6, 2014

Fixed in two commits, ints displayed correctly in 0ec45cbe and switch/case implemented in the debugging in bb4bab04. Will be in v0.19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A crash, misbehaviour, or other problem
Projects
None yet
Development

No branches or pull requests

2 participants