Skip to content

Commit

Permalink
Fixed compiler errors 11/05/2024 | 24w45a2
Browse files Browse the repository at this point in the history
  • Loading branch information
GamesTrap committed Nov 5, 2024
1 parent 1573373 commit 8f70d76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions TRAP/src/Graphics/API/Vulkan/Objects/VulkanInits.h
Original file line number Diff line number Diff line change
Expand Up @@ -1242,6 +1242,7 @@ namespace TRAP::Graphics::API::VulkanInits

//-------------------------------------------------------------------------------------------------------------------//

#ifndef TRAP_HEADLESS_MODE
[[nodiscard]] constexpr VkLatencySleepModeInfoNV TRAP::Graphics::API::VulkanInits::LatencySleepModeInfo(const RendererAPI::NVIDIAReflexLatencyMode latencyMode,
const u32 fpsLimit) noexcept
{
Expand All @@ -1254,6 +1255,7 @@ namespace TRAP::Graphics::API::VulkanInits
.minimumIntervalUs = (fpsLimit == 0u) ? fpsLimit : NumericCast<u32>(((1000.0f / NumericCast<f32>(fpsLimit)) * 1000.0f)) //Convert fpsLimit to microseconds if not 0.
};
}
#endif /*TRAP_HEADLESS_MODE*/

//-------------------------------------------------------------------------------------------------------------------//

Expand Down

0 comments on commit 8f70d76

Please sign in to comment.