Lines Matching refs:slot

95      * @param slot index of the constant input type to return
98 public Type getConstant(int slot) {
99 if (slot < 0 || slot >= mConstants.length) {
102 return mConstants[slot];
114 * Returns the type of texture at a given slot. e.g. 2D or Cube
115 * @param slot index of the texture input
118 public TextureType getTextureType(int slot) {
119 if ((slot < 0) || (slot >= mTextureCount)) {
122 return mTextures[slot];
126 * Returns the name of the texture input at a given slot. e.g.
128 * @param slot index of the texture input
131 public String getTextureName(int slot) {
132 if ((slot < 0) || (slot >= mTextureCount)) {
135 return mTextureNames[slot];
143 * @param slot index within the program's list of constant
146 public void bindConstants(Allocation a, int slot) {
147 if (slot < 0 || slot >= mConstants.length) {
151 a.getType().getID(mRS) != mConstants[slot].getID(mRS)) {
152 throw new IllegalArgumentException("Allocation type does not match slot type.");
155 mRS.nProgramBindConstants(getID(mRS), slot, id);
162 * @param slot index within the program's list of textures
165 public void bindTexture(Allocation va, int slot)
168 if ((slot < 0) || (slot >= mTextureCount)) {
172 mTextures[slot] != TextureType.TEXTURE_CUBE) {
173 throw new IllegalArgumentException("Cannot bind cubemap to 2d texture slot");
177 mRS.nProgramBindTexture(getID(mRS), slot, id);
185 * @param slot index within the program's list of textures to
189 public void bindSampler(Sampler vs, int slot)
192 if ((slot < 0) || (slot >= mTextureCount)) {
197 mRS.nProgramBindSampler(getID(mRS), slot, id);