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

Allow passing config macros from env #2147

Merged
merged 1 commit into from
May 18, 2020
Merged

Conversation

cloudwu
Copy link
Contributor

@cloudwu cloudwu commented May 18, 2020

bgfx defines many config macros in src/config.h . If it allows changing these macros before generating projects would be better.

For examples, we can use

make BGFX_CONFIG=MAX_COMMAND_BUFFER_SIZE=131072:MAX_INSTANCE_DATA_COUNT=6

to change BGFX_DEFINE_MAX_COMMAND_BUFFER_SIZE and BGFX_DEFINE_MAX_INSTANCE_DATA_COUNT.

@cloudwu cloudwu requested a review from bkaradzic as a code owner May 18, 2020 03:45
@bkaradzic bkaradzic merged commit 79166df into bkaradzic:master May 18, 2020
@cloudwu cloudwu deleted the userdefines branch May 28, 2020 07:13
rozgo pushed a commit to VertexStudio/bgfx that referenced this pull request Aug 14, 2020
pigpigyyy added a commit to pigpigyyy/bgfx that referenced this pull request Mar 11, 2021
* master:
  Allow passing config macros from env (bkaradzic#2147)
  Update examples to build on Emscripten Wasm. Add separate wasm and wasm2js targets. (bkaradzic#2145)
  Updated meshoptimizer.
  Updated ImGui.
  Updated vulkan headers.
  Updated spirv-cross.
  Updated spirv-tools.
  Updated glslang.
  Cleanup.
  Fixed build.
  Cleanup dead code (bkaradzic#2143)
  Updated ImGui.
  Updated ImGui.
  Reverted bkaradzic#2021.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants