You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
330 B
16 lines
330 B
1 year ago
|
use citro3d_macros::include_shader;
|
||
|
|
||
|
#[test]
|
||
|
fn includes_shader_static() {
|
||
|
static SHADER_BYTES: &[u8] = include_shader!("test.pica");
|
||
|
|
||
|
assert_eq!(SHADER_BYTES.len() % 4, 0);
|
||
|
}
|
||
|
|
||
|
#[test]
|
||
|
fn includes_shader_const() {
|
||
|
const SHADER_BYTES: &[u8] = include_shader!("test.pica");
|
||
|
|
||
|
assert_eq!(SHADER_BYTES.len() % 4, 0);
|
||
|
}
|