Jump to content

  • Log In with Google      Sign In   
  • Create Account

version of the offline shader compiler


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
7 replies to this topic

#1 lomateron   Members   -  Reputation: 342

Like
0Likes
Like

Posted 22 February 2014 - 03:43 AM

Can I update the version of my compiler?

I am using the offline compiler that came with the "Microsoft DirectX SDK (June 2010)"

 

I have this massive shader effect and I will like to know if there are newer better compilers that can optimize that code


Edited by lomateron, 22 February 2014 - 03:43 AM.


Sponsor:

#2 Zaoshi Kaba   Crossbones+   -  Reputation: 4353

Like
1Likes
Like

Posted 22 February 2014 - 05:09 AM

Microsoft stopped developing DirectX SDK as separate thing. It now comes with Visual Studio 2013 build-in into Windows API. I'm afraid you'll have to download it if you want newer compiler.



#3 lomateron   Members   -  Reputation: 342

Like
0Likes
Like

Posted 22 February 2014 - 07:35 AM

I found it in Program Files (x86)\Windows Kits\8.0\bin\x64

 

I have one question, if I want the fastest code do I have to use /O0 /O1, /O2, /O3?

It says that it "Disables instruction reordering" but I am confused, is /O0 /O1, /O2, /O3 to make debug faster?

it says that /O0 /O1, /O2, /O3 is for optimization, is that optimization for debugging?

I want the fastest code so what do I use  "/O1" or "/Od"?

what other syntax should I use if I want the fastest code?


Edited by lomateron, 22 February 2014 - 08:09 AM.


#4 Alessio1989   Members   -  Reputation: 2007

Like
0Likes
Like

Posted 22 February 2014 - 08:48 AM

edit: need more coffee...


Edited by Alessio1989, 22 February 2014 - 09:43 AM.

"Software does not run in a magical fairy aether powered by the fevered dreams of CS PhDs"


#5 lomateron   Members   -  Reputation: 342

Like
0Likes
Like

Posted 22 February 2014 - 08:59 AM

Alessio1989

But that is C++

 

I don't think that is the same in the fxc.exe compiler

http://msdn.microsoft.com/en-us/library/windows/desktop/bb509709(v=vs.85).aspx

 

  • O2 - Same as O1. Reserved for future use.


#6 Alessio1989   Members   -  Reputation: 2007

Like
0Likes
Like

Posted 22 February 2014 - 09:43 AM

Sorry, I didn't notice to the section name (so I thought you was talking for the C++ compiler...)..

 

For FXC compiler:

 

- use /Od and /Zi for debugging

- no flag (/O1) for release mode.


Edited by Alessio1989, 22 February 2014 - 09:44 AM.

"Software does not run in a magical fairy aether powered by the fevered dreams of CS PhDs"


#7 lomateron   Members   -  Reputation: 342

Like
0Likes
Like

Posted 23 February 2014 - 01:27 AM

Alessio1989

you said you have visual studio 2013, I have the 2012

what is the version of your Direct3D shader?

mine is 9.30.9200.16384 , you can see the version when you compile a shader



#8 Alessio1989   Members   -  Reputation: 2007

Like
0Likes
Like

Posted 23 February 2014 - 02:10 PM

fxc version on windows sdk 8.1 is 9.3.9600.1384


"Software does not run in a magical fairy aether powered by the fevered dreams of CS PhDs"





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS