forked from microsoft/DirectXShaderCompiler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from o3de/specialization_constants
Add DXSC tool to patch specialization constant on DXIL
- Loading branch information
Showing
7 changed files
with
498 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Copyright (C) Microsoft Corporation. All rights reserved. | ||
# This file is distributed under the University of Illinois Open Source License. See LICENSE.TXT for details. | ||
# Builds dxsc.exe | ||
|
||
set( LLVM_LINK_COMPONENTS | ||
${LLVM_TARGETS_TO_BUILD} | ||
DXIL | ||
DxilContainer | ||
DxilRootSignature | ||
HLSL | ||
dxcsupport | ||
Option # option library | ||
MSSupport # for CreateMSFileSystemForDisk | ||
) | ||
|
||
add_clang_executable(dxsc | ||
dxsc.cpp | ||
) | ||
|
||
target_link_libraries(dxsc | ||
dxcompiler | ||
) | ||
|
||
set_target_properties(dxsc PROPERTIES VERSION ${CLANG_EXECUTABLE_VERSION}) | ||
|
||
add_dependencies(dxsc dxcompiler) | ||
|
||
if(UNIX) | ||
set(CLANGXX_LINK_OR_COPY create_symlink) | ||
# Create a relative symlink | ||
set(dxsc_binary "dxsc${CMAKE_EXECUTABLE_SUFFIX}") | ||
else() | ||
set(CLANGXX_LINK_OR_COPY copy) | ||
set(dxsc_binary "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/dxsc${CMAKE_EXECUTABLE_SUFFIX}") | ||
endif() | ||
|
||
install(TARGETS dxsc | ||
RUNTIME DESTINATION bin) | ||
|
Oops, something went wrong.