Skip to content

Commit

Permalink
hal/dx12: build fixes for the new arrayvec
Browse files Browse the repository at this point in the history
  • Loading branch information
kvark committed Jul 13, 2021
1 parent 450e5dc commit 0334e5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion wgpu-hal/src/dx12/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,7 @@ impl crate::Device<super::Api> for super::Device {
let mut ranges = Vec::with_capacity(total_non_dynamic_entries);

let mut bind_group_infos =
arrayvec::ArrayVec::<[super::BindGroupInfo; crate::MAX_BIND_GROUPS]>::default();
arrayvec::ArrayVec::<super::BindGroupInfo, { crate::MAX_BIND_GROUPS }>::default();
for (index, bgl) in desc.bind_group_layouts.iter().enumerate() {
let space = root_space_offset + index as u32;
let mut info = super::BindGroupInfo {
Expand Down
4 changes: 2 additions & 2 deletions wgpu-hal/src/dx12/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ enum PassKind {

struct PassState {
has_label: bool,
resolves: ArrayVec<[PassResolve; crate::MAX_COLOR_TARGETS]>,
resolves: ArrayVec<PassResolve, { crate::MAX_COLOR_TARGETS }>,
vertex_buffers: [d3d12::D3D12_VERTEX_BUFFER_VIEW; crate::MAX_VERTEX_BUFFERS],
dirty_vertex_buffers: usize,
kind: PassKind,
Expand Down Expand Up @@ -423,7 +423,7 @@ pub struct PipelineLayout {
raw: native::RootSignature,
// Storing for each associated bind group, which tables we created
// in the root signature. This is required for binding descriptor sets.
bind_group_infos: ArrayVec<BindGroupInfo, crate::MAX_BIND_GROUPS>,
bind_group_infos: ArrayVec<BindGroupInfo, { crate::MAX_BIND_GROUPS }>,
naga_options: naga::back::hlsl::Options,
}

Expand Down

0 comments on commit 0334e5b

Please sign in to comment.