mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-22 14:56:27 +00:00
Fmt
This commit is contained in:
parent
4140589ca7
commit
3eaa45cc52
@ -478,7 +478,7 @@ struct DefUseAnalyzer<'a> {
|
||||
def_ids: HashMap<u32, usize>,
|
||||
use_ids: HashMap<u32, Vec<usize>>,
|
||||
use_result_type_ids: HashMap<u32, Vec<usize>>,
|
||||
instructions: &'a mut [rspirv::dr::Instruction]
|
||||
instructions: &'a mut [rspirv::dr::Instruction],
|
||||
}
|
||||
|
||||
impl<'a> DefUseAnalyzer<'a> {
|
||||
@ -526,7 +526,7 @@ impl<'a> DefUseAnalyzer<'a> {
|
||||
def_ids,
|
||||
use_ids,
|
||||
use_result_type_ids,
|
||||
instructions
|
||||
instructions,
|
||||
}
|
||||
}
|
||||
|
||||
@ -540,7 +540,9 @@ impl<'a> DefUseAnalyzer<'a> {
|
||||
}
|
||||
|
||||
fn for_each_use<F>(&mut self, id: u32, mut f: F)
|
||||
where F: FnMut(&mut rspirv::dr::Instruction) {
|
||||
where
|
||||
F: FnMut(&mut rspirv::dr::Instruction),
|
||||
{
|
||||
// find by `result_type`
|
||||
if let Some(use_result_type_id) = self.use_result_type_ids.get(&id) {
|
||||
for inst_idx in use_result_type_id {
|
||||
|
Loading…
Reference in New Issue
Block a user