[][src]Trait julia_set::Backend

pub trait Backend<In>: Default {
    type Error: Debug + Display;
    type Program: Render;
    pub fn create_program(
        &self,
        function: In
    ) -> Result<Self::Program, Self::Error>; }

Backend capable of converting an input (the type parameter) into a program. The program then can be used to Render the Julia set with various rendering Params.

Associated Types

type Error: Debug + Display[src]

Error that may be returned during program creation.

type Program: Render[src]

Program output by the backend.

Loading content...

Required methods

pub fn create_program(&self, function: In) -> Result<Self::Program, Self::Error>[src]

Creates a program.

Errors

May return an error if program cannot be created (out of memory, etc.).

Loading content...

Implementors

impl Backend<&'_ Function> for Cpu[src]

type Error = Infallible

type Program = CpuProgram<Function>

impl Backend<&'_ Function> for OpenCl[src]

type Error = Error

type Program = OpenClProgram

impl Backend<&'_ Function> for Vulkan[src]

type Error = Error

type Program = VulkanProgram

impl<F: ComputePoint> Backend<F> for Cpu[src]

type Error = Infallible

type Program = CpuProgram<F>

Loading content...