diff options
author | Jeremiah van Oosten <jpvanoosten@hotmail.com> | 2017-10-27 14:59:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-10-30 13:52:10 (GMT) |
commit | 025221df2a84500df2fb9ea6bebaf42baaa79400 (patch) | |
tree | 47be6fc21490e8b94fed352f1289b1d5659611c4 /Help/prop_sf | |
parent | 8ffc1c3d89a5562d40a5bd86c457a3173a1469d0 (diff) | |
download | CMake-025221df2a84500df2fb9ea6bebaf42baaa79400.zip CMake-025221df2a84500df2fb9ea6bebaf42baaa79400.tar.gz CMake-025221df2a84500df2fb9ea6bebaf42baaa79400.tar.bz2 |
VS: Add source file property to set hlsl debug and optimization flags
Add `VS_SHADER_DISABLE_OPTIMIZATIONS` and `VS_SHADER_ENABLE_DEBUG`
source file properties to control these settings on `.hlsl` files in the
VS generator.
Fixes: #17406
Diffstat (limited to 'Help/prop_sf')
-rw-r--r-- | Help/prop_sf/VS_SHADER_DISABLE_OPTIMIZATIONS.rst | 6 | ||||
-rw-r--r-- | Help/prop_sf/VS_SHADER_ENABLE_DEBUG.rst | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/Help/prop_sf/VS_SHADER_DISABLE_OPTIMIZATIONS.rst b/Help/prop_sf/VS_SHADER_DISABLE_OPTIMIZATIONS.rst new file mode 100644 index 0000000..446dd26 --- /dev/null +++ b/Help/prop_sf/VS_SHADER_DISABLE_OPTIMIZATIONS.rst @@ -0,0 +1,6 @@ +VS_SHADER_DISABLE_OPTIMIZATIONS +------------------------------- + +Disable compiler optimizations for an ``.hlsl`` source file. This adds the +``-Od`` flag to the command line for the FxCompiler tool. Specify the value +``true`` for this property to disable compiler optimizations. diff --git a/Help/prop_sf/VS_SHADER_ENABLE_DEBUG.rst b/Help/prop_sf/VS_SHADER_ENABLE_DEBUG.rst new file mode 100644 index 0000000..c0e60a3 --- /dev/null +++ b/Help/prop_sf/VS_SHADER_ENABLE_DEBUG.rst @@ -0,0 +1,6 @@ +VS_SHADER_ENABLE_DEBUG +---------------------- + +Enable debugging information for an ``.hlsl`` source file. This adds the +``-Zi`` flag to the command line for the FxCompiler tool. Specify the value +``true`` to generate debugging information for the compiled shader. |