@@ -178,13 +178,9 @@ TEST_F(VkLayerTest, SpecLinksImplicit) {
178
178
TEST_DESCRIPTION (" Test that spec links in a typical error message are well-formed" );
179
179
RETURN_IF_SKIP (Init ());
180
180
181
- std::string major_version = std::to_string (VK_VERSION_MAJOR (VK_HEADER_VERSION_COMPLETE));
182
- std::string minor_version = std::to_string (VK_VERSION_MINOR (VK_HEADER_VERSION_COMPLETE));
183
- std::string patch_version = std::to_string (VK_VERSION_PATCH (VK_HEADER_VERSION_COMPLETE));
184
- // keep VUID seperate otherwise vk_validation_stats.py will get confused
185
- std::string spec_version = " doc/view/" + major_version + " ." + minor_version + " ." + patch_version + " .0/windows/1." +
186
- minor_version + " -extensions/vkspec.html#" +
187
- std::string (" VUID-vkGetPhysicalDeviceFeatures-pFeatures-parameter" );
181
+ std::string spec_url_base = ANNOTATED_SPEC_LINK;
182
+ std::string spec_version =
183
+ spec_url_base + " chapters/features.html#" + std::string (" VUID-vkGetPhysicalDeviceFeatures-pFeatures-parameter" );
188
184
189
185
m_errorMonitor->SetDesiredError (spec_version.c_str ());
190
186
vk::GetPhysicalDeviceFeatures (Gpu (), nullptr );
@@ -195,12 +191,8 @@ TEST_F(VkLayerTest, SpecLinksExplicit) {
195
191
TEST_DESCRIPTION (" Test that spec links in a typical error message are well-formed" );
196
192
RETURN_IF_SKIP (Init ());
197
193
198
- std::string major_version = std::to_string (VK_VERSION_MAJOR (VK_HEADER_VERSION_COMPLETE));
199
- std::string minor_version = std::to_string (VK_VERSION_MINOR (VK_HEADER_VERSION_COMPLETE));
200
- std::string patch_version = std::to_string (VK_VERSION_PATCH (VK_HEADER_VERSION_COMPLETE));
201
- // keep VUID seperate otherwise vk_validation_stats.py will get confused
202
- std::string spec_version = " doc/view/" + major_version + " ." + minor_version + " ." + patch_version + " .0/windows/1." +
203
- minor_version + " -extensions/vkspec.html#" + std::string (" VUID-VkBufferCreateInfo-size-00912" );
194
+ std::string spec_url_base = ANNOTATED_SPEC_LINK;
195
+ std::string spec_version = spec_url_base + " chapters/resources.html#" + std::string (" VUID-VkBufferCreateInfo-size-00912" );
204
196
205
197
VkBufferCreateInfo info = vku::InitStructHelper ();
206
198
info.usage = VK_BUFFER_USAGE_TRANSFER_SRC_BIT;
0 commit comments