Skip to content

Metal render pass error #21

@highway900

Description

@highway900

I have setup a simple example of using infinite grid and the scene renders briefly then crashes. Here is the initialisation of the camera and grid during the menu stage, I am using PanOrbitCamera if that is of any consequence. The example ran from this repo works no problem, this led me to believe that it could be an ordering issue? but I am just guessing at this stage.

    commands
        .spawn(InfiniteGridBundle {
            grid: InfiniteGrid {
                ..Default::default()
            },
            ..Default::default()
        })
        .insert(GridShadowCamera);
    commands
        .spawn((
            Camera3dBundle {
                transform: Transform::from_xyz(0.0, 4.37, 14.77),
                ..Default::default()
            },
            PanOrbitCamera::default(),
        ))
        .insert(GameCamera);
Caused by:
    In a RenderPass
      note: encoder = `<CommandBuffer-(0, 8, Metal)>`
    In a set_pipeline command
      note: render pipeline = `grid-render-pipeline-shadowless`
    Render pipeline targets are incompatible with render pass
    Incompatible sample count: the renderpass expected 1 but was given 4

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