-
Couldn't load subscription status.
- Fork 1.5k
add +netbsd,+midnightbsd,+haiku #3719
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
base: v1.x
Are you sure you want to change the base?
Conversation
|
If RenderDoc doesn't work then how did you test this? And what is the purpose of this change? |
this is mainly because some applications straight up vendor renderdoc_app.h and do not change anything for portability |
|
I'm not sure that this is a good idea. If RenderDoc does not work then this feels like a hack in the wrong place - if an application wants to compile on another OS that RenderDoc doesn't support then they should conditionally include the header so that then they can also conditionally use the functionality. The same would apply to any other header or library with limited platform support - if there were a library that e.g. did not support Android then it's up to an application to only reference it on desktop. I think I'd be OK with demoting the |
What about demotion + |
|
No the header should not expose functionality that's untested and non-functional. As I say really applications should not be including headers that don't work. |
|
It's not just applications. Mesa itself does this Unless there is a way to do things without downloads (or CMake hell) applications will continue to vendor RenderDoc for the foreseeable future. Maybe forbidding such vendoring in the first place (like making renderdoc_app.h depend on another header or whatnot) would be ideal to stop the accidentally stepping on platforms without renderdoc. Or all of this is solved with a simple |
|
I'm not sure how vendoring is related here. Copying the header into the tree and using it from there is a good idea and keeps things simple, but that's entirely independent from whether or not it gets included. An example from mesa would be the D3D12 headers - they are used in some places but are not guaranteed to compile on all platforms especially when they're only meaningful on windows. How they're distributed is immaterial, they should still only be included on windows. |
Description
Tested myself, works on all these systems.
Obviously RenderDoc itself doesn't even work on FreeBSD. But the API does on all these unixes!