Skip to content

Commit

Permalink
Merge pull request #14 from alfonsmagd/feature/ShaderPipeLine_OpenGL
Browse files Browse the repository at this point in the history
Feature/shader pipe line open gl
  • Loading branch information
alfonsmagd authored Nov 24, 2024
2 parents 714fae2 + f2645a4 commit f55be31
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions Ifnity/Ifnity/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ if(MSVC)
endif()

# Output directories
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/Debug)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/Release)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DIST ${CMAKE_BINARY_DIR}/Dist)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG_IFNITY ${CMAKE_BINARY_DIR}/DebugContributor)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE_IFNITY ${CMAKE_BINARY_DIR}/ReleaseContributor)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DIST_IFNITY ${CMAKE_BINARY_DIR}/DistContributor)

#DXC directories and variables
set(DXC_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/vendor/dxc/include")
Expand Down Expand Up @@ -207,30 +207,30 @@ set_target_properties(${PROJECT_NAME} PROPERTIES
add_custom_command(TARGET ${PROJECT_NAME} PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${PROJECT_SOURCE_DIR}/vendor/nvml/nvml.lib
${CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG}
${CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG_IFNITY}
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${PROJECT_SOURCE_DIR}/vendor/nvml/nvml.lib
${CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE}
${CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE_IFNITY}
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${PROJECT_SOURCE_DIR}/vendor/nvml/nvml.lib
${CMAKE_RUNTIME_OUTPUT_DIRECTORY_DIST}
${CMAKE_RUNTIME_OUTPUT_DIRECTORY_DIST_IFNITY}
)

foreach(DLL_PATH IN LISTS DXC_DLLS)
add_custom_command(TARGET ${PROJECT_NAME} PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${DLL_PATH}
${CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG}
${CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG_IFNITY}
)
add_custom_command(TARGET ${PROJECT_NAME} PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${DLL_PATH}
${CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE}
${CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE_IFNITY}
)
add_custom_command(TARGET ${PROJECT_NAME} PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${DLL_PATH}
${CMAKE_RUNTIME_OUTPUT_DIRECTORY_DIST}
${CMAKE_RUNTIME_OUTPUT_DIRECTORY_DIST_IFNITY}
)
endforeach()

Expand Down
4 changes: 2 additions & 2 deletions Ifnity/ShadersPipeLine/src/Source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1971,7 +1971,7 @@ IFNITY::App* IFNITY::CreateApp()
//
//return new Source_Tetahedre(api);

//return new Source_VTXP_HLSL(api);
return new Source_CUBEMAP_FIGURE(api);
return new Source_VTXP_HLSL(api);
//return new Source_CUBEMAP_FIGURE(api);
}

0 comments on commit f55be31

Please sign in to comment.