XNA Creators Club Online
Page 1 of 1 (4 items)
Sort Posts: Previous Next

FXC assembly listing

Last post 27/05/2009 10:14 by caustic. 3 replies.
  • 26/05/2009 18:34

    FXC assembly listing

    I'm trying to get FXC to ouput an assembly listing from an FX file, uisng the /Cc option like this:

    fxc /T fx_4_0 /E VertexShader /Cc file.fx

    It only outputs a description of the cbuffers and offsets and sizes for variables. Also, the argument given to /E doesn't matter at all, ie. no errors if VertexShader doesn't exist.

    Any ideas how to get this working?
  • 26/05/2009 19:22 In reply to

    Re: FXC assembly listing

    I solved the problem myself.

    Accidently, in my FX file I had written 'technique' instead of 'technique10', so no code was being compiled and thus no assembly generated.
  • 26/05/2009 22:25 In reply to

    Re: FXC assembly listing

    according to the tool doc I am reading. the syntax for the output command to generate an assembly listing is

    /Fc <file>

    and to get an assembly and hex listing is

    /Fx <file>

    does either of those work instead of the /Cc color coded option?
    http://www.futuregpu.net ex-Aces Lead PM/ex DX SDK PM/ex D3D Evangelist now LRB Launch Native Title Wrangler
  • 27/05/2009 10:14 In reply to

    Re: FXC assembly listing

    You're right, but I was missing the default assembly output written to the console window and wrongly assumed that I needed the /Cc option to produce it. All was good when I declared my techniques using 'technique10' instead of 'technique'.
    I did not discover the error immediately because I wasn't loading the FX file from code, only compiling on command line.
Page 1 of 1 (4 items) Previous Next