Skip to content

Commit

Permalink
hlsl-out: switch register to u32
Browse files Browse the repository at this point in the history
  • Loading branch information
kvark committed Jul 18, 2021
1 parent 39eaa57 commit feee1a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/back/hlsl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub use writer::Writer;
#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))]
pub struct BindTarget {
pub space: u8,
pub register: u8,
pub register: u32,
}

// Using `BTreeMap` instead of `HashMap` so that we can hash itself.
Expand Down Expand Up @@ -108,14 +108,15 @@ impl Options {
Some(target) => Ok(target.clone()),
None if self.fake_missing_bindings => Ok(BindTarget {
space: res_binding.group as u8,
register: res_binding.binding as u8,
register: res_binding.binding,
}),
None => Err(EntryPointError::MissingBinding(res_binding.clone())),
}
}
}

/// Structure that contains a reflection info
#[derive(Default)]
pub struct ReflectionInfo {
/// Mapping of the entry point names. Each item in the array
/// corresponds to an entry point index. The real entry point name may be different if one of the
Expand Down

0 comments on commit feee1a2

Please sign in to comment.