dangmoody / HLML

Auto-generated maths library for C and C++ based on HLSL/Cg
24 stars 1 forks source link

Make zero-initialisation of maths types optional. #15

Closed dangmoody closed 4 years ago

dangmoody commented 5 years ago

People have said that they don't like the fact that if they initialise any math type they'll have to pay the cost of the zero-initialisation. Therefore this needs to be option (either in the generator or through the code usage itself) that people can opt-in to.

I've initially overlooked the fact that it makes more sense that the code doesn't do anything other than what the programmer tells it to, but something like this should still be given as optional functionality that's minimal and easy to use.

dangmoody commented 4 years ago

Given that the generated code will is what's going to be the actual release (as opposed to the generator) I think this will have to be done via #defines before including the main header now.

dangmoody commented 4 years ago

Fixed in 35ada88.