Skip to content

setUniform and BGFX_CONFIG_DEBUG_UNIFORM after recent update. #3511

Description

@unravel-dev

Hello after a recent update you introduced uniform frequency, per frame, per view, per draw. and in the per draw. There was a commented out line

m_uniformSet.insert(_handle.idx);

which allowed reuse of uniforms between draw calls. as long as they were not discarded.

For example

Mesh with 2 submeshes having all the same uniforms but one. Before we were able to do the following:

set common uniforms for both draw calls.

set specific unfirom for draw call 1
draw and preserve state

override the specific unfiorm for draw call 2
draw and discard state

Now unless i disable the BGFX_CONFIG_DEBUG_UNIFORM i am forced to set all uniforms for both draw calls each time.
Is this the intended design decision or am i missing something? If this is the design and its fine to disable the BGFX_CONFIG_DEBUG_UNIFORM close this issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions