Skip to content

Commit 84450e6

Browse files
committed
update wording
1 parent aba7807 commit 84450e6

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

include/nbl/video/ILogicalDevice.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ class NBL_API2 ILogicalDevice : public core::IReferenceCounted, public IDeviceMe
400400
) const
401401
{
402402
if (invalidFeaturesForASBuild<Geometry::buffer_t>(motionBlur)) {
403-
m_logger.log("Required features are not supported by the device [%s - %s:%p]", system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__);
403+
m_logger.log("Required features are not enabled [%s - %s:%p]", system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__);
404404
return {};
405405
}
406406

@@ -443,7 +443,7 @@ class NBL_API2 ILogicalDevice : public core::IReferenceCounted, public IDeviceMe
443443
) const
444444
{
445445
if (invalidFeaturesForASBuild<IGPUBuffer>(motionBlur)) {
446-
m_logger.log("Required features are not supported by the device [%s - %s:%p]", system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__);
446+
m_logger.log("Required features are not enabled [%s - %s:%p]", system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__);
447447
return {};
448448
}
449449

@@ -494,13 +494,13 @@ class NBL_API2 ILogicalDevice : public core::IReferenceCounted, public IDeviceMe
494494

495495
// https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-vkBuildAccelerationStructuresKHR-accelerationStructureHostCommands-03581
496496
if (!m_enabledFeatures.accelerationStructureHostCommands) {
497-
m_logger.log("Acceleration structure host commands feature is not enabled [%s - %s:%p]", system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__);
497+
m_logger.log("Feature `acceleration structure host commands` is not enabled [%s - %s:%p]", system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__);
498498
return false;
499499
}
500500

501501
// https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-vkBuildAccelerationStructuresKHR-infoCount-arraylength
502502
if (infos.empty()) {
503-
m_logger.log("Invalid parameters, infos may not be empty [%s - %s:%p]", system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__);
503+
m_logger.log("Invalid parameters, infos must not be empty [%s - %s:%p]", system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__);
504504
return false;
505505
}
506506

@@ -549,7 +549,7 @@ class NBL_API2 ILogicalDevice : public core::IReferenceCounted, public IDeviceMe
549549
break;
550550
}
551551
if (!getEnabledFeatures().accelerationStructureHostCommands) {
552-
m_logger.log("Acceleration structure host commands feature is not enabled [%s - %s:%p]", system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__);
552+
m_logger.log("Feature `acceleration structure` host commands is not enabled [%s - %s:%p]", system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__);
553553
return false;
554554
}
555555
for (const auto& as : accelerationStructures)
@@ -867,7 +867,7 @@ class NBL_API2 ILogicalDevice : public core::IReferenceCounted, public IDeviceMe
867867
{
868868
case IQueryPool::TYPE::PIPELINE_STATISTICS:
869869
if (!getEnabledFeatures().pipelineStatisticsQuery) {
870-
m_logger.log("Pipeline statistics feature is not enabled [%s - %s:%p]", system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__);
870+
m_logger.log("Feature `pipeline statistics` is not enabled [%s - %s:%p]", system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__);
871871
return nullptr;
872872
}
873873
break;
@@ -876,7 +876,7 @@ class NBL_API2 ILogicalDevice : public core::IReferenceCounted, public IDeviceMe
876876
case IQueryPool::TYPE::ACCELERATION_STRUCTURE_SERIALIZATION_BOTTOM_LEVEL_POINTERS: [[fallthrough]];
877877
case IQueryPool::TYPE::ACCELERATION_STRUCTURE_SIZE:
878878
if (!getEnabledFeatures().accelerationStructure) {
879-
m_logger.log("Acceleration structure feature is not enabled [%s - %s:%p]", system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__);
879+
m_logger.log("Feature `acceleration structure` is not enabled [%s - %s:%p]", system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__);
880880
return nullptr;
881881
}
882882
break;
@@ -1181,7 +1181,7 @@ class NBL_API2 ILogicalDevice : public core::IReferenceCounted, public IDeviceMe
11811181
inline bool invalidCreationParams(const IGPUAccelerationStructure::SCreationParams& params)
11821182
{
11831183
if (!getEnabledFeatures().accelerationStructure) {
1184-
m_logger.log("Acceleration structure feature is not enabled [%s - %s:%p]", system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__);
1184+
m_logger.log("Feature `acceleration structure` is not enabled [%s - %s:%p]", system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__);
11851185
return true;
11861186
}
11871187
constexpr size_t MinAlignment = 256u;
@@ -1195,7 +1195,7 @@ class NBL_API2 ILogicalDevice : public core::IReferenceCounted, public IDeviceMe
11951195
return true;
11961196
}
11971197
if (params.flags.hasFlags(IGPUAccelerationStructure::SCreationParams::FLAGS::MOTION_BIT) && !getEnabledFeatures().rayTracingMotionBlur) {
1198-
m_logger.log("Ray tracing motion blur feature is not enabled [%s - %s:%p]", system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__);
1198+
m_logger.log("Feature `ray tracing motion blur` is not enabled [%s - %s:%p]", system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__);
11991199
return true;
12001200
}
12011201
return false;
@@ -1205,17 +1205,17 @@ class NBL_API2 ILogicalDevice : public core::IReferenceCounted, public IDeviceMe
12051205
{
12061206
// https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-vkGetAccelerationStructureBuildSizesKHR-accelerationStructure-08933
12071207
if (!m_enabledFeatures.accelerationStructure) {
1208-
m_logger.log("Acceleration structure feature is not enabled [%s - %s:%p]", system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__);
1208+
m_logger.log("Feature `acceleration structure` is not enabled [%s - %s:%p]", system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__);
12091209
return true;
12101210
}
12111211
// not sure of VUID
12121212
if (std::is_same_v<BufferType, asset::ICPUBuffer> && !m_enabledFeatures.accelerationStructureHostCommands) {
1213-
m_logger.log("Acceleration structure host commands feature is not enabled [%s - %s:%p]", system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__);
1213+
m_logger.log("Feature `acceleration structure` host commands is not enabled [%s - %s:%p]", system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__);
12141214
return true;
12151215
}
12161216
// not sure of VUID
12171217
if (motionBlur && !m_enabledFeatures.rayTracingMotionBlur) {
1218-
m_logger.log("Ray tracing motion blur feature is not enabled [%s - %s:%p]", system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__);
1218+
m_logger.log("Feature `ray tracing motion blur` is not enabled [%s - %s:%p]", system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__);
12191219
return true;
12201220
}
12211221

0 commit comments

Comments
 (0)