renderdoc icon indicating copy to clipboard operation
renderdoc copied to clipboard

glMemoryBarrier()'s <barriers> argument is shown as an integer value

Open DominikWitczakAMD opened this issue 10 years ago • 3 comments

The argument is a bitfield, which can be an OR of various enums. Right now, RenderDoc shows the API call as below:

image

A potential improvement here would be to change the existing behavior to show a set of barriers the call toggles, instead of a raw int.

DominikWitczakAMD avatar Nov 11 '16 19:11 DominikWitczakAMD

This is partially because the API calls view is just a dump of the serialised form, and that value is serialised as a uint32. (See e.g. #271).

In this case though I can just co-erce it to an enum and get a nicer text display of the number at least so it's not too difficult to fix. Unfortunately GL doesn't have nice enums so I'll have to make one myself :/.

baldurk avatar Nov 11 '16 19:11 baldurk

Try with that commit, it should now display the list of barriers correctly I think.

baldurk avatar Nov 11 '16 19:11 baldurk

Works like a charm, thanks :)

DominikWitczakAMD avatar Nov 15 '16 07:11 DominikWitczakAMD