Mali GPU Shader Development Studio User Guide - ARM ...
Mali GPU Shader Development Studio User Guide - ARM ...
Mali GPU Shader Development Studio User Guide - ARM ...
- 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.2.3 Rendering the shader effectThe shader effect created in the previous section can be rendered in the <strong>Shader</strong> Preview view.This view shows the result of rendering a shader on the selected target.To render the shader effect:1. If it is not already open, open the <strong>Shader</strong> Preview view. To open this view, selectWindow → Show View and select the <strong>Shader</strong> Preview view.2. In the <strong>Shader</strong> Preview view, click the Select Renderer icon and select an appropriaterenderer from the menu displayed.A tick appears next to the renderer that is currently in use. See Figure 3-9:Figure 3-9 Selected renderer in <strong>Shader</strong> Preview view3. In the <strong>Shader</strong> Control view, click the Select <strong>Shader</strong> to Render icon and selectSimpleTest → New Effect. See Figure 3-10:Figure 3-10 Selected shader in <strong>Shader</strong> Control viewA Progress bar is displayed in the <strong>Shader</strong> Preview view to indicate that the selected shaderis being rendered by the target. The rendered image is then displayed in the <strong>Shader</strong>Preview view.NoteAlthough the image is rendered, no actual image is displayed in the view. This is becausethe geometry vertices and the camera matrix have not yet been set for the selected shader.To fix this, adjust the values of the uniforms and attributes in the shader. Two warningmessages are issued about this in the Problems view, if you have it open. To assign valuesto attributes and uniforms use the <strong>Shader</strong> Attributes and <strong>Shader</strong> Uniforms views.DUI0504C Copyright © 2009-2011 <strong>ARM</strong>. All rights reserved. 3-9ID011412Non-Confidential - Beta