google / google/gapid

Name variables in GL errors

Open
#1,149 4 comments 0 reactions 0 assignees View on GitHub
enhancement GAPIL P3 triaged
Dominant language
Go
Stars
2.2k
Forks
329
PR merge metrics
No merged PRs in 30d

Description

Follow up for #883

We check arguments using helper functions like this: CheckGE!GLuint(end, start)

This will generate error message which includes the two relevant values, so the user should be able to tell which of the function arguments is incorrect based on that. It would be more user friendly to also include the argument as string.

If this was C++, we could just use macro CHECK_GE(end, start) which stringifies the argument and includes it in the error message. Ideally the language should support something similar.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.