Known Direct Subclasses
ProgramFragment |
The Renderscript fragment program, also known as fragment shader is responsible
for manipulating pixel data in a user defined way. |
ProgramVertex |
ProgramVertex, also know as a vertex shader, describes a
stage in the graphics pipeline responsible for manipulating
geometric data in a user-defined way. |
|
Known Indirect Subclasses
ProgramFragmentFixedFunction |
ProgramFragmentFixedFunction is a helper class that provides
a way to make a simple fragment shader without writing any
GLSL code. |
ProgramVertexFixedFunction |
ProgramVertexFixedFunction is a helper class that provides a
simple way to create a fixed function emulation vertex shader
without writing any GLSL code. |
|
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
synchronized
void
|
destroy()
destroy disconnects the object from the native object effectively
rendering this java object dead.
|
boolean
|
equals(Object obj)
Compare the current BaseObj with another BaseObj for equality.
|
void
|
finalize()
Invoked when the garbage collector has detected that this instance is no longer reachable.
|
String
|
getName()
|
int
|
hashCode()
Calculates the hash code value for a BaseObj.
|
void
|
setName(String name)
setName assigns a name to an object.
|
|
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Invoked when the garbage collector has detected that this instance is no longer reachable.
|
final
Class<?>
|
getClass()
Returns the unique instance of Class that represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
|
Public Methods
public
void
bindConstants
(Allocation a, int slot)
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)
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)
Binds a texture to be used in the program
Parameters
va
| allocation containing texture data |
slot
| index within the program's list of textures
|