Skip to content

Commit 597c900

Browse files
committed
Lower max_color_attachments limit for GL to 4
1 parent b233d20 commit 597c900

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

wgpu-types/src/lib.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,7 @@ impl Limits {
13241324
/// min_uniform_buffer_offset_alignment: 256,
13251325
/// min_storage_buffer_offset_alignment: 256,
13261326
/// max_inter_stage_shader_components: 60,
1327-
/// max_color_attachments: 8,
1327+
/// max_color_attachments: 4,
13281328
/// max_color_attachment_bytes_per_sample: 32,
13291329
/// max_compute_workgroup_storage_size: 16352, // *
13301330
/// max_compute_invocations_per_workgroup: 256,
@@ -1344,6 +1344,7 @@ impl Limits {
13441344
max_texture_dimension_3d: 256,
13451345
max_storage_buffers_per_shader_stage: 4,
13461346
max_uniform_buffer_binding_size: 16 << 10, // (16 KiB)
1347+
max_color_attachments: 4,
13471348
// see: https://developer.apple.com/metal/Metal-Feature-Set-Tables.pdf#page=7
13481349
max_compute_workgroup_storage_size: 16352,
13491350
..Self::defaults()
@@ -1381,7 +1382,7 @@ impl Limits {
13811382
/// min_uniform_buffer_offset_alignment: 256,
13821383
/// min_storage_buffer_offset_alignment: 256,
13831384
/// max_inter_stage_shader_components: 31,
1384-
/// max_color_attachments: 8,
1385+
/// max_color_attachments: 4,
13851386
/// max_color_attachment_bytes_per_sample: 32,
13861387
/// max_compute_workgroup_storage_size: 0, // +
13871388
/// max_compute_invocations_per_workgroup: 0, // +

0 commit comments

Comments
 (0)