From 259592b926ef13d20a1c64b65df392f8cd5c8176 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Thu, 26 Sep 2024 21:06:03 -0700 Subject: [PATCH] [naga spv-out] Update Vulkan spec section number, and provide link. --- naga/src/back/spv/helpers.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/naga/src/back/spv/helpers.rs b/naga/src/back/spv/helpers.rs index 1fb447e38..15c241d44 100644 --- a/naga/src/back/spv/helpers.rs +++ b/naga/src/back/spv/helpers.rs @@ -85,7 +85,7 @@ impl crate::AddressSpace { /// Return true if the global requires a type decorated with `Block`. /// -/// Vulkan spec v1.3 §15.6.2, "Descriptor Set Interface", says: +/// In the Vulkan spec 1.3.296, the section [Descriptor Set Interface][dsi] says: /// /// > Variables identified with the `Uniform` storage class are used to /// > access transparent buffer backed resources. Such variables must @@ -98,6 +98,8 @@ impl crate::AddressSpace { /// > - laid out explicitly using the `Offset`, `ArrayStride`, and /// > `MatrixStride` decorations as specified in §15.6.4, "Offset /// > and Stride Assignment." +/// +/// [dsi]: https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#interfaces-resources-descset // See `back::spv::GlobalVariable::access_id` for details. pub fn global_needs_wrapper(ir_module: &crate::Module, var: &crate::GlobalVariable) -> bool { match var.space {