branchsbox/improve-draw-renderattribute-overridescancel
7 Commits over 0 Days - ∞cph!
Replace SetRoot call with MergeToPreserveExisting
Add native CRenderAttributes merge function that preserves existing values
Use that function to merge render attributes in managed
Improve handling of RenderAttribute overrides/additions in Draw APIs
Attributes passed to CommandList.DrawX and Graphics.DrawX now correctly merge with the "global" (CommandList.Attributes / Graphics.Attributes) attribute set.
Replaced existing usages of Attributes.MergeTo, the existing usage could lead to defaults overriding more specific values.
e.g. `Scene.RenderAttributes.MergeTo( camera.Attributes )` would potentially overwrite attributes in camera.Attributes with attributes from Scene.RenderAttribute we want it the other way around though.
Fixed DrawModelInstanced using blacklisted Memory type as parameter.
Remove leftover comment
Improve handling of RenderAttribute overrides/additions in Draw APIs
Attributes passed to CommandList.DrawX and Graphics.DrawX now correctly merge with the "global" (CommandList.Attributes / Graphics.Attributes) attribute set.
Replaced existing usages of Attributes.MergeTo, the existing usage could lead to defaults overriding more specific values.
e.g. `Scene.RenderAttributes.MergeTo( camera.Attributes )` would potentially overwrite attributes in camera.Attributes with attributes from Scene.RenderAttribute we want it the other way around though.
Fixed DrawModelInstanced using blacklisted Memory type as parameter.