JeremyAnsel.HLSL.Targets 2.0.27
JeremyAnsel.HLSL.Targets
JeremyAnsel.HLSL.Targets adds MSBuild support for HLSL compilation.
Usage
To build a hlsl shader file set the "Build Action" property to "HLSL Shader" in the "Advanced" category of the properties window. Then in the "HLSL" category set the "Shader Profile" property to a shader profile.
Shader profiles
Supported shader profiles are:
- Compute Shader 5.0
- Domain Shader 5.0
- Geometry Shader 5.0
- Hull Shader 5.0
- Pixel Shader 5.0
- Vertex Shader 5.0
- Compute Shader 4.1
- Geometry Shader 4.1
- Pixel Shader 4.1
- Vertex Shader 4.1
- Compute Shader 4.0
- Geometry Shader 4.0
- Pixel Shader 4.0
- Vertex Shader 4.0
- Pixel Shader 4.0 level 9.1
- Pixel Shader 4.0 level 9.3
- Vertex Shader 4.0 level 9.1
- Vertex Shader 4.0 level 9.3
- Pixel Shader 3.0
- Vertex Shader 3.0
- Pixel Shader 2.0
- Vertex Shader 2.0
Default shader code
If a shader profile is selected for an empty file then the file will be filled with a default shader code.
Output filename
On compiling the project the default output filename for a shader file is the filename of the shader file with a ".cso" extension.
Custom properties
Additional properties are:
- "Object File Output Name" to set the object file output name
- "Inserts Debug Information" to insert debug information into the output code
- "Preprocessor Definitions" to set the preprocessor definitions
- "Entry Point Name" to set the entry point name
- "Treat Warning As Error" to treat warning as error
- "Output Disassembly Shader" to output disassembly shader
- "Output Disassembly Shader in HTML" to output disassembly shader in HTML
No packages depend on JeremyAnsel.HLSL.Targets.
.NET Framework 4.8
- No dependencies.
.NET Standard 2.0
- No dependencies.
Version | Downloads | Last updated |
---|---|---|
2.0.29 | 2 | 2025/5/28 |
2.0.28 | 2 | 2025/5/29 |
2.0.27 | 1 | 2025/5/29 |
2.0.26 | 0 | 2024/9/22 |
2.0.25 | 0 | 2024/7/21 |
2.0.24 | 2 | 2025/5/29 |
2.0.23 | 0 | 2024/7/20 |
2.0.22 | 2 | 2025/5/29 |
2.0.21 | 0 | 2024/6/3 |
2.0.20 | 1 | 2025/5/29 |
2.0.19 | 0 | 2023/5/2 |
2.0.18 | 0 | 2023/3/25 |
2.0.17 | 0 | 2023/3/15 |
2.0.16 | 0 | 2022/5/17 |
2.0.15 | 0 | 2022/4/30 |
2.0.14 | 0 | 2022/4/30 |
1.0.13 | 2 | 2025/5/28 |
1.0.10 | 0 | 2020/5/13 |
1.0.9 | 0 | 2019/11/7 |
1.0.8 | 0 | 2019/11/7 |
1.0.7 | 1 | 2025/5/29 |
1.0.6 | 0 | 2019/11/5 |
1.0.5 | 0 | 2019/11/5 |
1.0.3 | 0 | 2019/11/5 |
1.0.2 | 0 | 2019/11/5 |