Skip to content

Commit

Permalink
Replace last fmt::format with IGL_FORMAT
Browse files Browse the repository at this point in the history
Summary: Don't use fmt::format directly

Reviewed By: corporateshark

Differential Revision: D50095026

fbshipit-source-id: 3d3dd6d4813c2e883338bdda80b9e4aec05b1ed1
  • Loading branch information
Shayan Javed authored and facebook-github-bot committed Oct 9, 2023
1 parent 6f7d3ec commit 3f68328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/igl/vulkan/Device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ std::shared_ptr<VulkanShaderModule> Device::createShaderModule(const void* data,
// Replace filename with your own path according to the platform and recompile.
// Ex. for Android your filepath should be specific to the package name:
// /sdcard/Android/data/<packageName>/files/
std::string filename = fmt::format("{}{}{}.spv", PATH_HERE, debugName, std::to_string(hash));
std::string filename = IGL_FORMAT("{}{}{}.spv", PATH_HERE, debugName, std::to_string(hash));
if (!std::filesystem::exists(filename)) {
std::ofstream spirvFile;
spirvFile.open(filename, std::ios::out | std::ios::binary);
Expand Down

0 comments on commit 3f68328

Please sign in to comment.