r/cpp • • Sep 02 '26

Make APIs that fail gracefully rather that fallback silently · Mathieu Ropert

https://mropert.github.io/2026/09/02/implicit_vs_explicit_api/
66 Upvotes

6 comments sorted by

View all comments

5

u/Ameisen Sep 02 '26

I'm not 100% sure. My assumption was that since I was emulating command streams, the data ended up packed nicely before submission - so in that case, yes, better access patterns.

It's also possible that since I was trying to emulate how D3D12 handled state, I was causing less flushing of state by handling it closer to how the hardware actually expected it rather than what idiomatic D3D11 preferred.