public class

Program

extends BaseObj
java.lang.Object
   ↳ android.renderscript.BaseObj
     ↳ android.renderscript.Program
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Program is a base class for all the objects that modify various stages of the graphics pipeline

Summary

Nested Classes
class Program.BaseProgramBuilder  
enum Program.TextureType TextureType specifies what textures are attached to Program objects  
Public Methods
void bindConstants(Allocation a, int slot)
Binds a constant buffer to be used as uniform inputs to the program
void bindSampler(Sampler vs, int slot)
Binds an object that describes how a texture at the corresponding location is sampled
void bindTexture(Allocation va, int slot)
Binds a texture to be used in the program
[Expand]
Inherited Methods
From class android.renderscript.BaseObj
From class java.lang.Object

Public Methods

public void bindConstants (Allocation a, int slot)

Since: API Level 11

Binds a constant buffer to be used as uniform inputs to the program

Parameters
a allocation containing uniform data
slot index within the program's list of constant buffer allocations

public void bindSampler (Sampler vs, int slot)

Since: API Level 11

Binds an object that describes how a texture at the corresponding location is sampled

Parameters
vs sampler for a corresponding texture
slot index within the program's list of textures to use the sampler on

public void bindTexture (Allocation va, int slot)

Since: API Level 11

Binds a texture to be used in the program

Parameters
va allocation containing texture data
slot index within the program's list of textures