r/AskProgramming • u/SimplySomeDude • Aug 26 '26
How much does struct alignment really matter performance wise on modern GPUs?
Are things like std430 or std140 unnecessarily strict?
6
Upvotes
r/AskProgramming • u/SimplySomeDude • Aug 26 '26
Are things like std430 or std140 unnecessarily strict?
View all comments
Show parent comment
1
u/SimplySomeDude Aug 27 '26
do you suppose that on GPUs that don't support scalar layout, it would be more or less efficient to compute pointer offsets on the gpu side to bypass array stride padding?