On Mon Jan 22 18:40:16 2024 +0000, Vijay Kiran Kamuju wrote:
They can all be combined to one, if we don't use a union and use 'void *' as member of CGpEffect to store the parameter. I am a bit confused on how to merge the cases if we use a union.
Just pick one. The pointer type doesn't matter if you're going to pass it to memcpy.