Lines Matching refs:slot

94      * @param slot index of the constant input type to return
97 public Type getConstant(int slot) {
98 if (slot < 0 || slot >= mConstants.length) {
101 return mConstants[slot];
113 * Returns the type of texture at a given slot. e.g. 2D or Cube
114 * @param slot index of the texture input
117 public TextureType getTextureType(int slot) {
118 if ((slot < 0) || (slot >= mTextureCount)) {
121 return mTextures[slot];
125 * Returns the name of the texture input at a given slot. e.g.
127 * @param slot index of the texture input
130 public String getTextureName(int slot) {
131 if ((slot < 0) || (slot >= mTextureCount)) {
134 return mTextureNames[slot];
142 * @param slot index within the program's list of constant
145 public void bindConstants(Allocation a, int slot) {
146 if (slot < 0 || slot >= mConstants.length) {
150 a.getType().getID(mRS) != mConstants[slot].getID(mRS)) {
151 throw new IllegalArgumentException("Allocation type does not match slot type.");
154 mRS.nProgramBindConstants(getID(mRS), slot, id);
161 * @param slot index within the program's list of textures
164 public void bindTexture(Allocation va, int slot)
167 if ((slot < 0) || (slot >= mTextureCount)) {
171 mTextures[slot] != TextureType.TEXTURE_CUBE) {
172 throw new IllegalArgumentException("Cannot bind cubemap to 2d texture slot");
176 mRS.nProgramBindTexture(getID(mRS), slot, id);
184 * @param slot index within the program's list of textures to
188 public void bindSampler(Sampler vs, int slot)
191 if ((slot < 0) || (slot >= mTextureCount)) {
196 mRS.nProgramBindSampler(getID(mRS), slot, id);