| New Button - Start a new source document, clear current contents |
| Load File Button - Load an existing source file into the editor |
| Save Button - Save editor code into current file |
| Save As Button - Save current editor code using a different file name |
| Compile Button - Compile current source and generate statistics |
| Compile Options Button - Bring up Shader Analyzer settings window |
"Shader Format" combo box - Current shader format: "HLSL", "D3D Asm" or "GLSL". This can be used to override auto detected shader format.
"Target" combo box - Select a target shader for analysis
"Entry Point" combo box - Select a shader entry point for analysis
"Sync ASIC" check box - Synchronize all ASIC combo boxes selection across all text panels
"Text Panels(s)" combo box - Select number of active text panel(s)
"Code Type" combo box - Select Active code type, HLSL, GLSL, IL, ISA or Assembly. Total number of lines shown on the text label.
"ASIC" combo box - Show code associated with selected ASIC
Code display panels - These windows shows corresponding source code. Only the left most windows is user editable and supports drag and drop file opening.
Results - Results are displayed on the bottom section
- "PerfStats" tab - show results arranged to highlight performance ratings
- "Outputs tab" - show compilation outputs and any errors
- "Statistics" tabs - show full performance statistics for all selected ASICs
| Quick Tip - To start using Shader Analyzer, load a DX shader source file and click on the Compile button. |
1 : Load or Paste Shader Code
- Load Shader code(hlsl, fx, asm, txt, glsl etc.) from an existing file or copy and paste from other window, i.e. Frame Debugger
- Shader code is loaded on the left code window
2 : Specify Compilation Options
- Shader Analyzer compiler options are available from the settings page. It is accessible from Menu bar / Windows / Settings or by clicking the "Compile Options" button from the toolbar.
- Options includes analysis method of D3D or FXC, compiler flags, custom arguments and target GPU devices
- Select at least one ASIC for compilation
- Default uses D3D compiler
3 : Generate Results
- Click the "Compile" button or hit "F7" key to generate results
- Results include ISA, D3D Assembly code and performance statistics
4 : Using Results
- ISA code is loaded by default on the second code window
- Select "D3D Asm" from the "Code Type" combo box to show assembly code
- Select "Triple" from the "Text Panel(s)" combo box to enable a third code window
- Generated code can be saved to a user specified location. Use the "Context menu / Save As" item from the corresponding code window
- Color coded performance analysis results are shown on the bottom "PerfStats" tab
- Compilation progress and status are shown on the bottom "Outputs" tab
- Full Performance data table is shown on the bottom "Statistics" tab