Skip to content

Latest commit

 

History

History
81 lines (67 loc) · 3.91 KB

hlsl-property-pages-general.md

File metadata and controls

81 lines (67 loc) · 3.91 KB
title HLSL Property Pages: General | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-ide
ms.tgt_pltfrm
ms.topic article
f1_keywords
VC.Project.FXCompilerTool.ShaderModel
VC.Project.FXCompilerTool.PreprocessorDefinitions
VC.Project.FXCompilerTool.ShaderType
VC.Project.FXCompilerTool.EnableDebuggingInformation
VC.Project.FXCompilerTool.AdditionalIncludeDirectories
VC.Project.FXCompilerTool.DisableOptimizations
VC.Project.FXCompilerTool.EntryPointName
dev_langs
C++
ms.assetid 0e02f2a6-f123-43da-b04b-a0719a7c2b03
caps.latest.revision 8
author BrianPeek
ms.author brpeek
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

HLSL Property Pages: General

To configure the following properties of the HLSL compiler (fxc.exe), use its General property page. For information about how to access the General property page in the HLSL folder, see Working with Project Properties.

UIElement List

Additional Include Directories
Adds one or more directories to the include path. Use semi-colons to separate the directories.

This property corresponds to the /I[path] command-line argument.

Entrypoint Name
Specifies the entry point for the shader. By default, the value is main.

This property corresponds to the /E[name] command-line argument.

Disable Optimizations
Yes (/Od) to disable optimizations; otherwise, No. By default, the value is Yes (/Od) for Debug configurations and No for Release configurations.

The /Od command-line argument to the HLSL compiler implicitly applies the /Gfp command-line argument, but output may not be identical to output that is produced by passing both the /Od and /Gfp command-line arguments explicitly.

Enable Debugging Information
Yes (/Zi) to enable debugging information; otherwise, No. By default, the value is Yes (/Zi) for Debug configurations and No for Release configurations.

Shader Type
Specifies the kind of shader. Different kinds of shaders implement different parts of the graphics pipeline. Certain kinds of shaders are available only in more recent shader models (which are specified by the Shader Model property)—for example, compute shaders were introduced in shader model 5.

This property corresponds to the [type] portion of the /T [type]_[model] command-line argument to the HLSL compiler. The Shader Models property specifies the [model] portion of the argument.

Shader Model
Specifies the shader model. Different shader models have different capabilities. In general, more recent shader models offer expanded capabilities but require more modern graphics hardware to run the shader code. Certain kinds of shaders (which are specified by the Shader Type property) are available only in more recent shader models—for example, compute shaders were introduced in shader model 5.

This property corresponds to the [model] portion of the /T [type]_[model] command-line argument to the HLSL compiler. The Shader Type property specifies the [type] portion of the argument.

Preprocessor Definitions
Adds one or more preprocessor symbol definitions to apply to the HLSL source code file. Use semi-colons to separate the symbol definitions.

This property corresponds to the /D [definitions] command-line argument to the HLSL compiler.

See Also

HLSL Property Pages
HLSL Property Pages: Advanced
HLSL Property Pages: Output Files