[spv-out] Quick tests for capability requests.

This commit is contained in:
Jim Blandy
2021-08-19 13:03:45 -07:00
parent b56349e9bf
commit 9713dbbbc1
2 changed files with 177 additions and 0 deletions

View File

@@ -1310,6 +1310,11 @@ impl Writer {
self.logical_layout.in_words(words);
Ok(())
}
/// Return the set of capabilities the last module written used.
pub fn get_capabilities_used(&self) -> &crate::FastHashSet<spirv::Capability> {
&self.capabilities_used
}
}
#[test]