private void Start()
 {
     timer         = D3D11Plugins.CreateGPUTimer();
     targetTexture = new RenderTexture(textureSize, textureSize, 0, RenderTextureFormat.ARGBFloat);
     targetTexture.enableRandomWrite = true;
     targetTexture.Create();
     outputRawImage.texture = targetTexture;
 }
    private static void CreateInstance()
    {
        if (instance != null)
        {
            return;
        }
        var gameObject = new GameObject("D3D11Plugins");

        instance = gameObject.AddComponent <D3D11Plugins>();
        GameObject.DontDestroyOnLoad(gameObject);
    }