wined3d: Assign to structs instead of using memcpy.