Add links for SpirV documents. (#2697)

This commit is contained in:
DHuan authored and GitHub committed 2022-05-28 06:27:37 +00:00
1 parent 9114283707
commit a2e27afd82
2 files changed
+4

No files matched your search

+2
View File
@@ -788,6 +788,8 @@ impl Drop for ShaderModule {
#[non_exhaustive]
pub enum ShaderSource<'a> {
/// SPIR-V module represented as a slice of words.
///
/// See also: [`util::make_spirv`], [`include_spirv`]
#[cfg(feature = "spirv")]
#[cfg_attr(docsrs, doc(cfg(feature = "spirv")))]
SpirV(Cow<'a, [u32]>),
+2
View File
@@ -44,6 +44,8 @@ fn test_vertex_attr_array() {
/// Macro to load a SPIR-V module statically.
///
/// It ensures the word alignment as well as the magic number.
///
/// Return type: [`crate::ShaderModuleDescriptor`]
#[macro_export]
#[cfg(feature = "spirv")]
macro_rules! include_spirv {