Skip to content

missing depth_stencil on SimpleGraphicsPipelineDesc causes crashes #279

@btrepp

Description

@btrepp

This took me awhile to figure out when copying the triangle example and working on it my own.

It seems if you omit

    fn depth_stencil(&self) -> Option<hal::pso::DepthStencilDesc> {
        None
    }

In the pipeline desc, you get a perplexing error

thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `true`,
 right: `false`',

Which even with full stack traces is hard to track down.

This is with rendy 0.5.1 (note: had to tweak winit code, as the triangle example on release-0.5.1 doesn't seem to compile)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions