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

Fix proposal for added O(1) EffectParameter lookups by name #6146 #6191

Merged
merged 9 commits into from Feb 16, 2018

Conversation

guFalcon
Copy link
Contributor

Since @alkher pointed out in #6184 that EffectParameters also get allocated for arrays (and maybe even lines of array declarations), I prepared this fix.

IMO it would be better to not add those to the EffectParameterCollection in the first place, I lack the experience to see the full consequences of such a change (and the lack of tests doesn't do any good either).
So with this fix everyone would be able to use shaders containing (constant) arrays again.

@Jjagg
Copy link
Contributor

Jjagg commented Feb 15, 2018

Let's get this merged! :)

@tomspilman
Copy link
Member

I'll merge this for now... but we should find the root cause of this issue and fix it.

@tomspilman tomspilman merged commit d2bd006 into MonoGame:develop Feb 16, 2018
@guFalcon
Copy link
Contributor Author

@alkher tested this and it seems to work for now.
I'll take a look at it tomorrow. Maybe I can do the 'real' fix.
It'll be new code for me, but you all are a great source of programming wisdom and a great help, so I feel confident. 😄

nkast pushed a commit to nkast/MonoGame that referenced this pull request Jun 26, 2018
…6146 (MonoGame#6191)

Fixes bug when adding parameters without name or null as name
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.

None yet

3 participants