Macro surfman::declare_surfman

source ·
macro_rules! declare_surfman {
    () => { ... };
}
Expand description

When using surfman, you should place this macro at the top of your crate, like so:

use surfman::macros::declare_surfman;

declare_surfman!();

fn main() { ... }

On Windows, this macro exports various linker flags that the GPU drivers look at to determine whether to use the integrated or discrete GPU. If you don’t use this macro, surfman should still work, but you may get the wrong GPU.