drawing_api/common/
fragment_program.rs

1use std::borrow::Cow;
2
3/// Represents a fragment program.
4/// Reference counted, thread safe, immutable object.
5pub trait FragmentProgram: Sized + Sync + Send + Clone + 'static {
6    unsafe fn new(program: Cow<'static, [u8]>) -> Result<Self, &'static str>;
7}