12.07.2015 Views

Mali GPU Shader Development Studio User Guide - ARM ...

Mali GPU Shader Development Studio User Guide - ARM ...

Mali GPU Shader Development Studio User Guide - ARM ...

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The <strong>Shader</strong> <strong>Development</strong> <strong>Studio</strong>3.4 <strong>Shader</strong> syntax checkingIf you do not have the Offline Compiler available, you can skip this section. For moreinformation about the Offline Compiler, see <strong>Mali</strong> <strong>GPU</strong> Developer Tools Overview.Each time a shader source file is saved, the <strong>Shader</strong> <strong>Development</strong> <strong>Studio</strong> compiles the shader inthe background using the offline compiler. If any errors are found, error messages are displayedin:• Problems view.• Alongside the offending line of the shader source file, if it is open in the shader sourceeditor.To see how errors are displayed by Eclipse:1. Open the file simple.frag in the SimpleTest project.2. Remove the semi-colon at the end of the vec4 expression.3. Save the file.A red error marker is displayed on the line beneath the vec4 expression line. SeeFigure 3-21:Figure 3-21 Error indicator in shader source editorSimilar to a C compiler, the offline compiler reports a missing semicolon as an error onthe next line.The removal of the semi-colon generates four separate error messages in the Problemsview. See Figure 3-22:Figure 3-22 Errors in Problems viewDUI0504C Copyright © 2009-2011 <strong>ARM</strong>. All rights reserved. 3-17ID011412Non-Confidential - Beta

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!