#![feature(core, plugin)]
#[plugin]
extern crate gfx_macros;
mod secret_lib;
use secret_lib::gfx;
#[shader_param]
#[allow(dead_code)]
struct TestParam {
a: i32,
b: [f32; 4],
c: gfx::shade::TextureParam,
d: gfx::RawBufferHandle,
e: f32,
#[name = "a_f"]
f: [f32; 4],
}
#[test]
fn test_link_copy() {
fn _is_copy<T: Copy>(_t: T) {}
fn _ref_copy(batch: gfx::batch::RefBatch<TestParam>) {
_is_copy(batch)
}
}
#[test]
fn test_shader_param() {
let _ref: gfx::batch::RefBatch<TestParam>;
let _owned: gfx::batch::OwnedBatch<TestParam>;
}