mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-25 08:51:05 +01:00
Add links for SpirV documents. (#2697)
This commit is contained in:
1 parent
9114283707
commit
a2e27afd82
2 files changed
+4
No files matched your search
@@ -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]>),
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user