Methods Summary |
---|
public ScriptField_RenderState_s | getRSData()
if (mField != null) {
return mField;
}
RenderScriptGL rs = SceneManager.getRS();
if (rs == null) {
return null;
}
mField = new ScriptField_RenderState_s(rs, 1);
updateRSData();
return mField;
|
public void | setProgramFragment(FragmentShader pf)
mFragment = pf;
updateRSData();
|
public void | setProgramRaster(android.renderscript.ProgramRaster pr)
mRaster = pr;
updateRSData();
|
public void | setProgramStore(android.renderscript.ProgramStore ps)
mStore = ps;
updateRSData();
|
public void | setProgramVertex(VertexShader pv)
mVertex = pv;
updateRSData();
|
void | updateRSData()
if (mField == null) {
return;
}
ScriptField_RenderState_s.Item item = new ScriptField_RenderState_s.Item();
item.pv = mVertex.getRSData().getAllocation();
item.pf = mFragment.getRSData().getAllocation();
item.ps = mStore;
item.pr = mRaster;
mField.set(item, 0, true);
|