[naga spv-out] Update Vulkan spec section number, and provide link.

This commit is contained in:
Jim Blandy 2024-09-26 21:06:03 -07:00
parent 04032905ef
commit 259592b926

View File

@ -85,7 +85,7 @@ impl crate::AddressSpace {
/// Return true if the global requires a type decorated with `Block`. /// 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 /// > Variables identified with the `Uniform` storage class are used to
/// > access transparent buffer backed resources. Such variables must /// > access transparent buffer backed resources. Such variables must
@ -98,6 +98,8 @@ impl crate::AddressSpace {
/// > - laid out explicitly using the `Offset`, `ArrayStride`, and /// > - laid out explicitly using the `Offset`, `ArrayStride`, and
/// > `MatrixStride` decorations as specified in §15.6.4, "Offset /// > `MatrixStride` decorations as specified in §15.6.4, "Offset
/// > and Stride Assignment." /// > 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. // See `back::spv::GlobalVariable::access_id` for details.
pub fn global_needs_wrapper(ir_module: &crate::Module, var: &crate::GlobalVariable) -> bool { pub fn global_needs_wrapper(ir_module: &crate::Module, var: &crate::GlobalVariable) -> bool {
match var.space { match var.space {