-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Attachments only support sample counts 1 and 4 #1832
Copy link
Copy link
Closed
Labels
area: apiIssues related to API surfaceIssues related to API surfacetype: enhancementNew feature or requestNew feature or request
Description
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:
wgpu/wgpu-core/src/command/render.rs
Lines 679 to 681 in 0b1657f
| if sample_count != 1 && sample_count != 4 { | |
| return Err(RenderPassErrorInner::InvalidSampleCount(sample_count)); | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: apiIssues related to API surfaceIssues related to API surfacetype: enhancementNew feature or requestNew feature or request