From b55f75e157156af49903b07153a3ed6cec1d20d8 Mon Sep 17 00:00:00 2001 From: JMS55 <47158642+JMS55@users.noreply.github.com> Date: Sat, 23 May 2020 19:59:11 -0400 Subject: [PATCH] Fix include_spv!() documentation (#81) --- src/macros.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/macros.rs b/src/macros.rs index d39606b..ac227c9 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -1,12 +1,12 @@ -//! Provides a macro and type for including SPIR-V shaders in const data. -//! -//! In an ideal world, a shader will be compiled at build-time directly into the executable. This -//! is opposed to the typical method of including a shader, which reads a GLSL source code file -//! from the file system at start, compiles it, and sends it to the GPU. That process adds a -//! non-trivial amount of time to startup, and additional error handling code at runtime. -//! -//! This macro moves all of that complexity to build-time. At least for the SPIR-V part of the -//! shader pipeline. (`gfx-hal` backends have their own SPIR-V-to-native compilers at runtime.) +/// Provides a macro and type for including SPIR-V shaders in const data. +/// +/// In an ideal world, a shader will be compiled at build-time directly into the executable. This +/// is opposed to the typical method of including a shader, which reads a GLSL source code file +/// from the file system at start, compiles it, and sends it to the GPU. That process adds a +/// non-trivial amount of time to startup, and additional error handling code at runtime. +/// +/// This macro moves all of that complexity to build-time. At least for the SPIR-V part of the +/// shader pipeline. (`gfx-hal` backends have their own SPIR-V-to-native compilers at runtime.) #[macro_export] macro_rules! include_spv {