Merge "Convert Java/JNI to 64-bit, part 2."
This commit is contained in:
@@ -27,7 +27,7 @@ package android.renderscript;
|
||||
**/
|
||||
public class ProgramVertexFixedFunction extends ProgramVertex {
|
||||
|
||||
ProgramVertexFixedFunction(int id, RenderScript rs) {
|
||||
ProgramVertexFixedFunction(long id, RenderScript rs) {
|
||||
super(id, rs);
|
||||
}
|
||||
|
||||
@@ -81,23 +81,23 @@ public class ProgramVertexFixedFunction extends ProgramVertex {
|
||||
|
||||
for (int i=0; i < mInputCount; i++) {
|
||||
tmp[idx++] = ProgramParam.INPUT.mID;
|
||||
tmp[idx++] = mInputs[i].getID(mRS);
|
||||
tmp[idx++] = (int)mInputs[i].getID(mRS);
|
||||
}
|
||||
for (int i=0; i < mOutputCount; i++) {
|
||||
tmp[idx++] = ProgramParam.OUTPUT.mID;
|
||||
tmp[idx++] = mOutputs[i].getID(mRS);
|
||||
tmp[idx++] = (int)mOutputs[i].getID(mRS);
|
||||
}
|
||||
for (int i=0; i < mConstantCount; i++) {
|
||||
tmp[idx++] = ProgramParam.CONSTANT.mID;
|
||||
tmp[idx++] = mConstants[i].getID(mRS);
|
||||
tmp[idx++] = (int)mConstants[i].getID(mRS);
|
||||
}
|
||||
for (int i=0; i < mTextureCount; i++) {
|
||||
tmp[idx++] = ProgramParam.TEXTURE_TYPE.mID;
|
||||
tmp[idx++] = mTextureTypes[i].mID;
|
||||
tmp[idx++] = (int)mTextureTypes[i].mID;
|
||||
texNames[i] = mTextureNames[i];
|
||||
}
|
||||
|
||||
int id = mRS.nProgramVertexCreate(mShader, texNames, tmp);
|
||||
long id = mRS.nProgramVertexCreate(mShader, texNames, tmp);
|
||||
ProgramVertexFixedFunction pv = new ProgramVertexFixedFunction(id, mRS);
|
||||
initProgram(pv);
|
||||
return pv;
|
||||
|
||||
Reference in New Issue
Block a user