MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0014349 | CMake | CMake | public | 2013-08-11 01:59 | 2015-06-01 08:38 |
Reporter | Chad Vernon | ||||
Assigned To | |||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Windows | OS | Windows 8 | OS Version | |
Product Version | CMake 2.8.11.2 | ||||
Target Version | Fixed in Version | CMake 3.1 | |||
Summary | 0014349: Add hlsl compiler support to Visual Studio 2012 | ||||
Description | Adding *.hlsl files to a Visual Studio 2012 project should activate the HLSL compiler for those files. We should also be able to specify the Shader Type of each hlsl file. Currently, the hlsl files are added like the following in the project: <ItemGroup> <None Include="..\shaders\simplePS.hlsl" /> <None Include="..\shaders\simpleVS.hlsl" /> </ItemGroup> They need to be added like so: <ItemGroup> <FxCompile Include="..\shaders\simplePS.hlsl" /> <FxCompile Include="..\shaders\simpleVS.hlsl" /> </ItemGroup> And ideally, we could specify the type of shader from the following choices: Effect, Vertex, Pixel, Geometry, Hull, Domain, Compute, Texture. This would create the following: <FxCompile Include="..\shaders\simplePS.hlsl"> <ShaderType Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'">Pixel</ShaderType> <ShaderType Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Pixel</ShaderType> <ShaderType Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Pixel</ShaderType> <ShaderType Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'">Pixel</ShaderType> </FxCompile> <FxCompile Include="..\shaders\simpleVS.hlsl"> <ShaderType Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'">Vertex</ShaderType> <ShaderType Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Vertex</ShaderType> <ShaderType Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Vertex</ShaderType> <ShaderType Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'">Vertex</ShaderType> </FxCompile> | ||||
Steps To Reproduce | Just create a Win32 executable project with Visual Studio 2012 and add an test.hlsl file to it. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2013-08-11 01:59 | Chad Vernon | New Issue | |||
2013-08-13 09:34 | Brad King | Note Added: 0033704 | |||
2013-08-13 09:34 | Brad King | Status | new => backlog | ||
2015-01-18 19:34 | Chad Vernon | Note Added: 0037732 | |||
2015-01-19 07:41 | Brad King | Note Added: 0037733 | |||
2015-01-19 07:41 | Brad King | Status | backlog => resolved | ||
2015-01-19 07:41 | Brad King | Resolution | open => fixed | ||
2015-01-19 07:41 | Brad King | Fixed in Version | => CMake 3.1 | ||
2015-06-01 08:38 | Robert Maynard | Note Added: 0038846 | |||
2015-06-01 08:38 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|