我需要测量计算机着色器的时间。当然,这并不是微不足道的事情。从中可以看出,在着色器调用之前和之后使用glFinish()是有用的。但他们也说,使用它没有那么好。有很好的可能性来测量我的着色时间吗?有没有可能测量一个计算机着色的时间?
我的代码看起来像这样:
renderloop()
{
//(1)
//(2)
if(updateFunction) //this is done just one time at the beginning
{
//update Texture with a compute shader
//...
glDispatchCo
我有一个Xamarin表单应用程序,其中一个页面是在Android上本地渲染。
public class ConnectIBeaconRenderer : PageRenderer , IBeaconConsumer
{
//How to implement IBeaconConsumer here?
}
如上所述,如何在页面呈现器中实现IBeaconConsumer?在活动中实现时,您需要实现的全部内容是
public void OnIBeaconServiceConnect()
{
//Only needs implementing this when inside