@@ -45,8 +45,8 @@ pub enum HostMap {
4545#[ derive( Clone , Debug , Hash , PartialEq ) ]
4646#[ cfg_attr( feature = "serial-pass" , derive( serde:: Deserialize , serde:: Serialize ) ) ]
4747pub ( crate ) struct AttachmentData < T > {
48- pub colors : ArrayVec < [ T ; hal:: MAX_COLOR_TARGETS ] > ,
49- pub resolves : ArrayVec < [ T ; hal:: MAX_COLOR_TARGETS ] > ,
48+ pub colors : ArrayVec < T , { hal:: MAX_COLOR_TARGETS } > ,
49+ pub resolves : ArrayVec < T , { hal:: MAX_COLOR_TARGETS } > ,
5050 pub depth_stencil : Option < T > ,
5151}
5252impl < T : PartialEq > Eq for AttachmentData < T > { }
@@ -70,8 +70,8 @@ pub(crate) struct RenderPassContext {
7070pub enum RenderPassCompatibilityError {
7171 #[ error( "Incompatible color attachment: {0:?} != {1:?}" ) ]
7272 IncompatibleColorAttachment (
73- ArrayVec < [ TextureFormat ; hal:: MAX_COLOR_TARGETS ] > ,
74- ArrayVec < [ TextureFormat ; hal:: MAX_COLOR_TARGETS ] > ,
73+ ArrayVec < TextureFormat , { hal:: MAX_COLOR_TARGETS } > ,
74+ ArrayVec < TextureFormat , { hal:: MAX_COLOR_TARGETS } > ,
7575 ) ,
7676 #[ error( "Incompatible depth-stencil attachment: {0:?} != {1:?}" ) ]
7777 IncompatibleDepthStencilAttachment ( Option < TextureFormat > , Option < TextureFormat > ) ,
@@ -962,7 +962,7 @@ impl<A: HalApi> Device<A> {
962962 fn get_introspection_bind_group_layouts < ' a > (
963963 pipeline_layout : & binding_model:: PipelineLayout < A > ,
964964 bgl_guard : & ' a Storage < binding_model:: BindGroupLayout < A > , id:: BindGroupLayoutId > ,
965- ) -> ArrayVec < [ & ' a binding_model:: BindEntryMap ; hal:: MAX_BIND_GROUPS ] > {
965+ ) -> ArrayVec < & ' a binding_model:: BindEntryMap , { hal:: MAX_BIND_GROUPS } > {
966966 pipeline_layout
967967 . bind_group_layout_ids
968968 . iter ( )
@@ -1690,7 +1690,7 @@ impl<A: HalApi> Device<A> {
16901690 & self ,
16911691 self_id : id:: DeviceId ,
16921692 implicit_context : Option < ImplicitPipelineContext > ,
1693- mut derived_group_layouts : ArrayVec < [ binding_model:: BindEntryMap ; hal:: MAX_BIND_GROUPS ] > ,
1693+ mut derived_group_layouts : ArrayVec < binding_model:: BindEntryMap , { hal:: MAX_BIND_GROUPS } > ,
16941694 bgl_guard : & mut Storage < binding_model:: BindGroupLayout < A > , id:: BindGroupLayoutId > ,
16951695 pipeline_layout_guard : & mut Storage < binding_model:: PipelineLayout < A > , id:: PipelineLayoutId > ,
16961696 ) -> Result < id:: PipelineLayoutId , pipeline:: ImplicitLayoutError > {
@@ -1757,7 +1757,7 @@ impl<A: HalApi> Device<A> {
17571757 self . require_downlevel_flags ( wgt:: DownlevelFlags :: COMPUTE_SHADERS ) ?;
17581758
17591759 let mut derived_group_layouts =
1760- ArrayVec :: < [ binding_model:: BindEntryMap ; hal:: MAX_BIND_GROUPS ] > :: new ( ) ;
1760+ ArrayVec :: < binding_model:: BindEntryMap , { hal:: MAX_BIND_GROUPS } > :: new ( ) ;
17611761
17621762 let io = validation:: StageIo :: default ( ) ;
17631763 let ( shader_module_guard, _) = hub. shader_modules . read ( & mut token) ;
@@ -1869,7 +1869,7 @@ impl<A: HalApi> Device<A> {
18691869 }
18701870
18711871 let mut derived_group_layouts =
1872- ArrayVec :: < [ binding_model:: BindEntryMap ; hal:: MAX_BIND_GROUPS ] > :: new ( ) ;
1872+ ArrayVec :: < binding_model:: BindEntryMap , { hal:: MAX_BIND_GROUPS } > :: new ( ) ;
18731873
18741874 let color_targets = desc
18751875 . fragment
@@ -2446,7 +2446,7 @@ pub struct MissingDownlevelFlags(pub wgt::DownlevelFlags);
24462446#[ cfg_attr( feature = "replay" , derive( serde:: Deserialize ) ) ]
24472447pub struct ImplicitPipelineContext {
24482448 pub root_id : id:: PipelineLayoutId ,
2449- pub group_ids : ArrayVec < [ id:: BindGroupLayoutId ; hal:: MAX_BIND_GROUPS ] > ,
2449+ pub group_ids : ArrayVec < id:: BindGroupLayoutId , { hal:: MAX_BIND_GROUPS } > ,
24502450}
24512451
24522452pub struct ImplicitPipelineIds < ' a , G : GlobalIdentityHandlerFactory > {
0 commit comments