Skip to content

Commit

Permalink
Merged pull request "Typos and GCC warning fixes": #63
Browse files Browse the repository at this point in the history
  • Loading branch information
apanteleev committed Jan 22, 2025
2 parents 14cd30e + 30fa13c commit 26e97c3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/nvrhi/nvrhi.h
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ namespace nvrhi
Pixel = 0x0010,
Amplification = 0x0040,
Mesh = 0x0080,
AllGraphics = 0x00FE,
AllGraphics = 0x00DF,

RayGeneration = 0x0100,
AnyHit = 0x0200,
Expand Down
3 changes: 2 additions & 1 deletion src/validation/validation-commandlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1263,6 +1263,7 @@ namespace nvrhi::validation
{
case Format::RG32_FLOAT:
case Format::RGB32_FLOAT:
case Format::RGBA32_FLOAT:
case Format::RG16_FLOAT:
case Format::RGBA16_FLOAT:
case Format::RG16_SNORM:
Expand All @@ -1278,7 +1279,7 @@ namespace nvrhi::validation
default: {
std::stringstream ss;
ss << "BLAS " << utils::DebugNameToString(as->getDesc().debugName) << " build geometry " << i
<< " has unsupported vertex format: " << utils::FormatToString(triangles.indexFormat);
<< " has unsupported vertex format: " << utils::FormatToString(triangles.vertexFormat);
error(ss.str());
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/vulkan/vulkan-device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ namespace nvrhi::vulkan
try {
m_Context.device.waitIdle();
}
catch (vk::DeviceLostError e)
catch (vk::DeviceLostError &e)
{
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/vulkan/vulkan-queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ namespace nvrhi::vulkan
try {
m_Queue.submit(submitInfo);
}
catch (vk::DeviceLostError e)
catch (vk::DeviceLostError &e)
{
m_Context.messageCallback->message(MessageSeverity::Error, "Device Removed!");
}
Expand Down

0 comments on commit 26e97c3

Please sign in to comment.