Skip to content

Attachments only support sample counts 1 and 4 #1832

@phoekz

Description

@phoekz

Description
When starting a render pass which has multisampling enabled, I get this validation error:

[2021-08-19T16:28:25Z ERROR wgpu::backend::direct] wgpu error: Validation Error

    Caused by:
        In a RenderPass
          note: encoder = `Encoder`
        In a pass parameter
          note: command buffer = `Encoder`
        attachment's sample count 2 is invalid

Sample counts 1 and 4 work, while 2 and 8 do not, even though my GPU definitely supports those. I looked around and I suspect this condition is the problem:

if sample_count != 1 && sample_count != 4 {
return Err(RenderPassErrorInner::InvalidSampleCount(sample_count));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions