- dx10 is deprecated
- dx11 -> dxbc
- use appropriate gl target based on shader type
- add wgsl
- add dxil (dx12)
dxil is a bit of an odd one as bgfx dynamically loads the compiler
runtime from the shaderc binary path, so i've added some extra
configuration to copy the appropriate vendored binaries over to the
build output/install directories.
caused by bkaradzic/bgfx.cmake#22
overriding *any* renderer config defines causes bgfx to disable
automatic config derivation for *all* renderers - this meant that force
disabling WebGPU was also implicitly disabling all other renderers by
default. not sure what the best option is here (outside of explicitly
setting all renderers in the build system) but removing this for now to
restore expected per-platform defaults.
the logic here was a bit backwards in that webgpu was forced at runtime
if we were building it - bgfx will figure out what renderers are
supported by the current target itself, but it *should* be removed as an
option if we aren't linking to it.
* remove profile extension incompatible with those listed under examples/runtime/shaders; fix incorrect parameter names; enforce consistent syntax when appending to CLI.
* remove dx9
* add separate profile extension for paths vs profile extension
* Added a new option to allow "example-common" project to not be included in build.
* Set BGFX_BUILD_EXAMPLE_COMMON as a dependent option, it will be set ON if either tools or examples are included in the build, OFF otherwise.
* cmake format
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: Sandy <bwrsandman@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Fix missing bx headers when compiling SHARED
Fix compat and tinystl being installed in include root
Move submodule specific installs to their respecive config files.
The custom command didn't recognize bgfx::shaderc and the generator expression seems bettter. I also added an include option since it might be important to be able to define those.
Added changes to each of the cmake files to make sure bgfx:: is defined
Also add an output variable name parameter.
Co-Authored-By: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>