AcademySoftwareFoundation / OpenShadingLanguage

Advanced shading language for production GI renderers
BSD 3-Clause "New" or "Revised" License
2.08k stars 352 forks source link

platform.h: fully define bitcast template #1635

Closed lgritz closed 1 year ago

lgritz commented 1 year ago

Ported from OIIO. This lets us not have to depend on the specific definition in OIIO's fmath.h, and in particular not worry about whether it's a new enough version of OIIO that the old bit_cast is now marked as deprecated.

Signed-off-by: Larry Gritz lg@larrygritz.com