1 // Copyright 2016 GFX developers 2 // 3 // Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or 4 // http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or 5 // http://opensource.org/licenses/MIT>, at your option. This file may not be 6 // copied, modified, or distributed except according to those terms. 7 8 use metal::*; 9 10 const PROGRAM: &'static str = ""; 11 main()12fn main() { 13 let device = Device::system_default().expect("no device found"); 14 15 let options = CompileOptions::new(); 16 let _library = device.new_library_with_source(PROGRAM, &options); 17 } 18