Adding getters to rs program obejcts.
Change-Id: Iff8ccc1835109d303201d6a1adb6e5cbde8ba634
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user