Adding getters to rs program obejcts.

Change-Id: Iff8ccc1835109d303201d6a1adb6e5cbde8ba634
This commit is contained in:
Alex Sakhartchouk
2012-01-06 10:36:06 -08:00
parent 95853e4e2b
commit d5a62bb802
2 changed files with 51 additions and 0 deletions

View File

@@ -54,6 +54,23 @@ public class ProgramVertex extends Program {
super(id, rs);
}
/**
* @hide
*/
public int getInputCount() {
return mInputs != null ? mInputs.length : 0;
}
/**
* @hide
*/
public Element getInput(int slot) {
if (slot < 0 || slot >= mInputs.length) {
throw new IllegalArgumentException("Slot ID out of range.");
}
return mInputs[slot];
}
/**
* Builder class for creating ProgramVertex objects.
* The builder starts empty and the user must minimally provide