Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

HLSL Compiling.

$
0
0

Hello People,

Tool:

Microsoft Visual Studio Professional 2012
Version 11.0.50727.1 RTMREL
Microsoft .NET Framework
Version 4.5.50709

Installed Version: Professional

Scenario:

We have been using shaders embedded in our code (OpenGL) and I am moving them to separate files.

I also wanted to enable the HLSL compiling for the files bu the "HLSL Compiler" doesn't seem to available in the pulldown type.

So to start ... the shaders are in a static library...is the option just disabled for that type?

I tried hand editing the .xcxproj file to add the entries as ...

    <FxCompile Include="shaders\fbo.frag.hlsl">
      <ShaderType>Fragment</ShaderType>
    </FxCompile>

But reloading the project made the entries not appear in Visual Studio.

So I re-added them to the project using the menus.

Now I duplicate entries of the same file and still no HLSL compiling occuring.

    <FxCompile Include="shaders\fbo.frag.hlsl">
      <ShaderType>Fragment</ShaderType>
    </FxCompile>

    <None Include="shaders\fbo.frag.hlsl" />

What I want...

The shaders maintained as separate source files.  

The HLSL Compiler to give us informed compile errors on the shader code.

The shaders built into a resource file in the library that actually loads and compiles them in OpenGL land. 

Is this impossible?


Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>