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.

Configuring the <strong>Shader</strong> <strong>Development</strong> <strong>Studio</strong>Fragment <strong>Shader</strong>s sectionThe fragment shaders section lists all the shader source files that make up the fragment part ofthe shader effect.NoteIt is valid to put a non-specific shader, one that is neither a vertex nor fragment shader, in thislist. But, be aware that the shader is compiled and checked for errors as a fragment shader bythe offline compiler. Ordering of source files might be important to the functionality of theshader effect, so buttons are provided to re-order the list.New <strong>Shader</strong> Create a shader with the default shader code and adds it to the list.Add <strong>Shader</strong> Add an existing shader source file to the list. The source file must belong to thecurrent project.Remove <strong>Shader</strong>Remove the selected shader source file from the list.Move UpMove the selected shader source file up one position. The shader sources arepassed to the compiler in the order they appear in the list.Move Down Move the selected shader source file down one position. The shader sources arepassed to the compiler in the order they appear in the list.4.3.3 Matrix and Vector EditorYou can use the Matrix and Vector editor to edit shader attribute and uniform values in the<strong>Shader</strong> Attributes view and <strong>Shader</strong> Uniforms view. The editor presents a table that can be usedto edit the values of vector and matrix OpenGL ES 2.0 types. The drop-down list at the top ofthe editor enables loading of pre-defined values. The exact functionality available in the editoris dependent on the context it is used in.ImportExportImport values from a Comma Separated Value file.Export the current values to a Comma Separated Value file.For more information about the Matrix and Vector Editor, see Rendering the shader effect onpage 3-9.NoteYou can copy and paste attributes and uniforms values.4.3.4 Sampler EditorThe Sampler editor is used to edit settings for OpenGL ES 2.0 sampler types (sampler2D,samplerCube).TextureSelect the texture to be used for the sampler.Use Built-in If checked, use one of the built-in textures for this sampler. Select a texture fromthe drop down list. If unchecked, use the Browse… button to select a texture fromthe project.The Sampler editor also specifies how OpenGLES filters and wraps the texture.DUI0504C Copyright © 2009-2011 <strong>ARM</strong>. All rights reserved. 4-7ID011412Non-Confidential - Beta

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

Saved successfully!

Ooh no, something went wrong!