FIXED: 2019.19160 Win 10 - c++ TOP (cuda) plugin - topInput->pixelFormat not refreshing?

Hello,

in the execute() function I’m checking for the input format and display an error if different than expected, however it seems once the error has been displayed, even with the correct input format the only way to get rid of the error is to unload and reload the plugin.

This plugin : GitHub - vinz9/CudaSortTOP: TouchDesigner TOP wrapper for Cuda Thrust sort_by_key function

Code in CudaSortTOP.cpp

	if (topInput->pixelFormat != GL_RGBA16F && topInput->pixelFormat != GL_RGBA32F) {
		myError = "Input Texture must be 16-bit float (RGBA) or 32-bit float (RGBA).";
		return;
	}

See this video : topInputformat.mp4 - Google Drive
(created with included sample Toe)

Let me know if you can reproduce, thank you!

Just guessing, what happens if you set myError to null at the top of the execute function?

Hey David,

Good call, that did the trick! I thought it was reset every loop but I guess not.
Would be nice to have it with a comment in the c++ samples.

Thanks for the report. The examples will reset myError in the next builds we post.

1 Like

Hello! Been wanting to use this c++ but can’t find CudaSortTop.dll file on the repository. Maybe you can link it, thanks!

@light.synth
It’s in one of the release zips
https://github.com/vinz9/CudaSortTOP/releases/download/0.1/CudaSortTOP0.1.zip