This prevents issues with using standard C functions, where microsoft would otherwise spit out pointless warnings to encourage using microsoft-specific functions instead.
Currently only supports shared texture capture, and doesn't support rescaling.