public static class

ProgramVertex.Builder

extends Program.BaseProgramBuilder
java.lang.Object
   ↳ android.renderscript.Program.BaseProgramBuilder
     ↳ android.renderscript.ProgramVertex.Builder

Class Overview

Builder class for creating ProgramVertex objects. The builder starts empty and the user must minimally provide the GLSL shader code, and the varying inputs. Constant, or uniform parameters to the shader may optionally be provided as well.

Summary

Public Constructors
ProgramVertex.Builder(RenderScript rs)
Create a builder object.
Public Methods
ProgramVertex.Builder addInput(Element e)
Add varying inputs to the program
ProgramVertex create()
Creates ProgramVertex from the current state of the builder
[Expand]
Inherited Methods
From class android.renderscript.Program.BaseProgramBuilder
From class java.lang.Object

Public Constructors

public ProgramVertex.Builder (RenderScript rs)

Since: API Level 11

Create a builder object.

Parameters
rs Context to which the program will belong.

Public Methods

public ProgramVertex.Builder addInput (Element e)

Since: API Level 11

Add varying inputs to the program

Parameters
e element describing the layout of the varying input structure
Returns
  • self

public ProgramVertex create ()

Since: API Level 11

Creates ProgramVertex from the current state of the builder

Returns
  • ProgramVertex