File tree 5 files changed +6
-0
lines changed
5 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -298,6 +298,7 @@ impl hal::Instance for Instance {
298
298
framebuffer_color_samples_count : 1 , // TODO
299
299
framebuffer_depth_samples_count : 1 , // TODO
300
300
framebuffer_stencil_samples_count : 1 , // TODO
301
+ max_color_attachments : 1 , // TODO
301
302
non_coherent_atom_size : 0 , // TODO
302
303
} ;
303
304
Original file line number Diff line number Diff line change @@ -1040,6 +1040,7 @@ impl hal::Instance for Instance {
1040
1040
framebuffer_color_samples_count : 0b101 ,
1041
1041
framebuffer_depth_samples_count : 0b101 ,
1042
1042
framebuffer_stencil_samples_count : 0b101 ,
1043
+ max_color_attachments : 1 , // TODO
1043
1044
non_coherent_atom_size : 1 , //TODO: confirm
1044
1045
} ,
1045
1046
format_properties : Arc :: new ( format_properties) ,
Original file line number Diff line number Diff line change @@ -441,6 +441,7 @@ impl hal::PhysicalDevice<Backend> for PhysicalDevice {
441
441
framebuffer_color_samples_count : 0b101 , // TODO
442
442
framebuffer_depth_samples_count : 0b101 , // TODO
443
443
framebuffer_stencil_samples_count : 0b101 , // TODO
444
+ max_color_attachments : 1 , // TODO
444
445
445
446
// Note: we issue Metal buffer-to-buffer copies on memory flush/invalidate,
446
447
// and those need to operate on sizes being multiples of 4.
Original file line number Diff line number Diff line change @@ -627,6 +627,7 @@ impl hal::PhysicalDevice<Backend> for PhysicalDevice {
627
627
framebuffer_color_samples_count : limits. framebuffer_color_sample_counts . flags ( ) as _ ,
628
628
framebuffer_depth_samples_count : limits. framebuffer_depth_sample_counts . flags ( ) as _ ,
629
629
framebuffer_stencil_samples_count : limits. framebuffer_stencil_sample_counts . flags ( ) as _ ,
630
+ max_color_attachments : limits. max_color_attachments as _ ,
630
631
non_coherent_atom_size : limits. non_coherent_atom_size as _ ,
631
632
}
632
633
}
Original file line number Diff line number Diff line change @@ -268,6 +268,8 @@ pub struct Limits {
268
268
pub framebuffer_depth_samples_count : image:: NumSamples ,
269
269
/// Number of samples supported for stencil attachments of framebuffers.
270
270
pub framebuffer_stencil_samples_count : image:: NumSamples ,
271
+ /// Maximum number of color attachments that can be used by a subpass in a render pass.
272
+ pub max_color_attachments : usize ,
271
273
/// Size and alignment in bytes that bounds concurrent access to host-mapped device memory.
272
274
pub non_coherent_atom_size : usize ,
273
275
}
You can’t perform that action at this time.
0 commit comments