Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
when making structs for shaders in DX and forgetting about this. and when you see your 3d model a mess of triangles.
-
@bvs23bkv33 however it could decrease performance and the alignment may be a requirement if you work with unmanaged code like I do
-
@aBrokenDonut also some CPU architectures don't support unaligned memory accesses, and your app will just crash
I found something really interesting depicted in the image.
It is because of memory alignment / padding.
I could explain it to you guys, but this url would do a far better job:
https://kalapos.net/Blog/ShowPost/...
rant
memory padding
memory layout
memory alignment