Skip to content

Commit da477a4

Browse files
committedJan 26, 2025·
Lower max_color_attachments limit for GL to 4
1 parent 9993f5c commit da477a4

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
@@ -1321,7 +1321,7 @@ impl Limits {
13211321
/// min_uniform_buffer_offset_alignment: 256,
13221322
/// min_storage_buffer_offset_alignment: 256,
13231323
/// max_inter_stage_shader_components: 60,
1324-
/// max_color_attachments: 8,
1324+
/// max_color_attachments: 4,
13251325
/// max_color_attachment_bytes_per_sample: 32,
13261326
/// max_compute_workgroup_storage_size: 16352, // *
13271327
/// max_compute_invocations_per_workgroup: 256,
@@ -1341,6 +1341,7 @@ impl Limits {
13411341
max_texture_dimension_3d: 256,
13421342
max_storage_buffers_per_shader_stage: 4,
13431343
max_uniform_buffer_binding_size: 16 << 10, // (16 KiB)
1344+
max_color_attachments: 4,
13441345
// see: https://developer.apple.com/metal/Metal-Feature-Set-Tables.pdf#page=7
13451346
max_compute_workgroup_storage_size: 16352,
13461347
..Self::defaults()
@@ -1378,7 +1379,7 @@ impl Limits {
13781379
/// min_uniform_buffer_offset_alignment: 256,
13791380
/// min_storage_buffer_offset_alignment: 256,
13801381
/// max_inter_stage_shader_components: 31,
1381-
/// max_color_attachments: 8,
1382+
/// max_color_attachments: 4,
13821383
/// max_color_attachment_bytes_per_sample: 32,
13831384
/// max_compute_workgroup_storage_size: 0, // +
13841385
/// max_compute_invocations_per_workgroup: 0, // +

0 commit comments

Comments
 (0)
Please sign in to comment.