pub trait Backend<In>: Default {
type Error: Debug + Display;
type Program: Render;
// Required method
fn create_program(&self, function: In) -> Result<Self::Program, Self::Error>;
}Expand description
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl Backend<&Function> for Cpu
Available on crate features dyn_cpu_backend and cpu_backend only.
impl Backend<&Function> for Cpu
Available on crate features
dyn_cpu_backend and cpu_backend only.type Error = Infallible
type Program = CpuProgram<Function>
Source§impl<F: ComputePoint> Backend<F> for Cpu
Available on crate feature cpu_backend only.
impl<F: ComputePoint> Backend<F> for Cpu
Available on crate feature
cpu_backend only.