version of the offline shader compiler

Started by
6 comments, last by Alessio1989 10 years, 1 month ago

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

Advertisement

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.

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?

edit: need more coffee...

"Recursion is the first step towards madness." - "Skegg?ld, Skálm?ld, Skildir ro Klofnir!"
Direct3D 12 quick reference: https://github.com/alessiot89/D3D12QuickRef/
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.

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.

"Recursion is the first step towards madness." - "Skegg?ld, Skálm?ld, Skildir ro Klofnir!"
Direct3D 12 quick reference: https://github.com/alessiot89/D3D12QuickRef/
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

fxc version on windows sdk 8.1 is 9.3.9600.1384

"Recursion is the first step towards madness." - "Skegg?ld, Skálm?ld, Skildir ro Klofnir!"
Direct3D 12 quick reference: https://github.com/alessiot89/D3D12QuickRef/

This topic is closed to new replies.

Advertisement