small notes
This commit is contained in:
parent
a99b5600bc
commit
537d75bbce
@ -16,7 +16,6 @@ pub struct RenderResourceAssignments {
|
||||
HashMap<BindGroupDescriptorId, (RenderResourceSetId, Option<Vec<u32>>)>,
|
||||
dirty_bind_groups: HashSet<BindGroupDescriptorId>,
|
||||
pub(crate) shader_defs: HashSet<String>,
|
||||
// TODO: move offsets here to reduce hashing costs?
|
||||
}
|
||||
|
||||
impl RenderResourceAssignments {
|
||||
|
||||
@ -189,7 +189,7 @@ where
|
||||
let uniforms = assets
|
||||
.get(&handle)
|
||||
.expect("Handle points to a non-existent resource");
|
||||
|
||||
// TODO: only increment count if we haven't seen this uniform handle before
|
||||
self.increment_uniform_counts(&uniforms);
|
||||
}
|
||||
}
|
||||
@ -493,6 +493,7 @@ where
|
||||
let uniforms = assets
|
||||
.get(&handle)
|
||||
.expect("Handle points to a non-existent resource");
|
||||
// TODO: only setup buffer if we haven't seen this handle before
|
||||
self.setup_uniform_buffer_resources(
|
||||
&uniforms,
|
||||
render_resources,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user