Enum amethyst_renderer::Error
[−]
pub enum Error { BufferCreation(CreationError), NoSuchTarget(String), PassInit(PipelineStateError<String>), PipelineCreation(CreationError), PoolCreation(String), ProgramCreation(ProgramError), ResViewCreation(ResourceViewError), TargetCreation(CombinedError), TextureCreation(CreationError), WindowDestroyed, }
Common renderer error type.
Variants
BufferCreation(CreationError)
Failed to create a buffer.
NoSuchTarget(String)
A render target with the given name does not exist.
PassInit(PipelineStateError<String>)
Failed to initialize a render pass.
PipelineCreation(CreationError)
Failed to create a pipeline state object (PSO).
PoolCreation(String)
Failed to create thread pool.
ProgramCreation(ProgramError)
Failed to create and link a shader program.
ResViewCreation(ResourceViewError)
Failed to create a resource view.
TargetCreation(CombinedError)
Failed to create a render target.
TextureCreation(CreationError)
Failed to create a texture resource.
WindowDestroyed
The window handle associated with the renderer has been destroyed.
Trait Implementations
impl Debug for Error
[src]
impl StdError for Error
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&StdError>
The lower-level cause of this error, if any. Read more
impl Display for Error
[src]
fn fmt(&self, fmt: &mut Formatter) -> FmtResult
Formats the value using the given formatter. Read more
impl From<CombinedError> for Error
[src]
fn from(e: CombinedError) -> Error
Performs the conversion.
impl From<PipelineStateError<String>> for Error
[src]
fn from(e: PipelineStateError<String>) -> Error
Performs the conversion.
impl From<ResourceViewError> for Error
[src]
fn from(e: ResourceViewError) -> Error
Performs the conversion.
impl From<CreationError> for Error
[src]
fn from(e: CreationError) -> Error
Performs the conversion.
impl From<ProgramError> for Error
[src]
fn from(e: ProgramError) -> Error
Performs the conversion.
impl From<CreationError> for Error
[src]
fn from(e: CreationError) -> Error
Performs the conversion.
impl From<CreationError> for Error
[src]
fn from(e: CreationError) -> Error
Performs the conversion.