HLSL and MinGW

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Brainsaw
Posts: 1183
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

HLSL and MinGW

Post by Brainsaw »

Hi,

I am currently trying to get my head a little bit into shaders, but I realized that that I can't use HLSL shaders with my irrlicht.dll I created following the tutorial on the wiki (http://irrlicht3d.org/wiki/index.php?n= ... 9WithMinGW). Does anyone have an idea if it's possible to activate HLSL when using MinGW? I don't want to switch to VC because MinGW gives me better performance. Thanks.
Dustbin::Games on the web: https://www.dustbin-online.de/

Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
JTippetts
Posts: 7
Joined: Wed Oct 19, 2011 12:44 am

Re: HLSL and MinGW

Post by JTippetts »

I am currently using a MinGW build of Irrlicht built using the instructions at that link to include D3D9 support, and I have no trouble running the samples that use shaders in either D3D or OpenGL mode. Exactly what kind of errors are you getting?
Brainsaw
Posts: 1183
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Re: HLSL and MinGW

Post by Brainsaw »

Hi,

sorry for the late reply, but this is the error I see in the console:
Could not load shader function D3DXCompileShader from dll, shaders disabled: d3dx9_42.dll
Any idea?
Dustbin::Games on the web: https://www.dustbin-online.de/

Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: HLSL and MinGW

Post by hybrid »

Too new dll? There's a workaround to enable the old interface of d3dx, maybe it also help for this revision. Could be, though, that we need to rework some parts of the shader handling to make things easier.
Post Reply