Skip to content

Commit

Permalink
Remove compile definition OUTPUT_DIR.
Browse files Browse the repository at this point in the history
  • Loading branch information
kugimasa committed Aug 26, 2023
1 parent 4d93475 commit c0adbee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ include_directories(src/include)
include_directories("external/stb")
include_directories("external/tinyobjloader")

# Output directory
target_compile_definitions(WebGPUTracer PRIVATE
OUTPUT_DIR="${CMAKE_BINARY_DIR}"
)
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/output)

if (DEV_MODE)
target_compile_definitions(WebGPUTracer PRIVATE
RESOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}/resources"
Expand Down
2 changes: 1 addition & 1 deletion src/render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ bool Renderer::OnRender(uint32_t frame) {
/// PNG出力
std::ostringstream sout;
sout << std::setw(3) << std::setfill('0') << frame;
std::string output_file = OUTPUT_DIR "/" + sout.str() + ".png";
std::string output_file = sout.str() + ".png";
if (!saveTexture(output_file.c_str(), device_, texture_, 0 /* output MIP level */)) {
Error(PrintInfoType::WebGPUTracer, "Image output failed.");
return false;
Expand Down

0 comments on commit c0adbee

Please sign in to comment.