Question

The Java API allows a RenderScript Allocation to function as a SurfaceTexture provider. (Simple usage example)

The C++ API seems to support only half of the methods necessary to bind an Allocation to a texture. Specifically, in rsCppStructs.h (lines 278-569) the following methods are defined:

void syncAll(RsAllocationUsageType srcLocation);
void ioSendOutput();
void ioGetInput();

but the methods setSurface and getSurface are absent. Has that functionality not yet been implemented? If not, when might it be?

Was it helpful?

Solution

not at the moment. the issue is actually with the underlying support library and how surface textures work across different Android versions than anything specifically about the NDK bindings. it's on our list of things to do in the near future, but I can't give a real ETA.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top