Make HlslUnit a portable class library