13.07.2015 Views

Mali GPU User Interface Engine Application Development Guide

Mali GPU User Interface Engine Application Development Guide

Mali GPU User Interface Engine Application Development Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 6Tutorial on Constructing Custom ShadersThis chapter describes how to use the <strong>Mali</strong> <strong>GPU</strong> <strong>User</strong> <strong>Interface</strong> <strong>Engine</strong> and the MDE library tocreate custom vertex and fragment shaders. It contains the following sections:• Overview of the graphics pipeline on page 6-2• Data resources used by the shaders on page 6-5• Passing data as uniforms on page 6-7• Minimal shader programs on page 6-12• Assigning the shader programs on page 6-14• Filling a shape with a bitmap texture on page 6-16• Performing matrix transformations in the shaders on page 6-18.ARM DUI 0527A-02a Copyright © 2010 ARM. All rights reserved. 6-1ID070710Non-Confidential - Draft - Beta

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

Saved successfully!

Ooh no, something went wrong!