[][src]Macro surfman::declare_surfman

macro_rules! declare_surfman {
    () => { ... };
}

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

This example is not tested
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.