- Home /
Question by
P5YK0P4T · Jun 12, 2019 at 02:55 PM ·
scripting problemerrorunityeditorerror messageforum
error CS0117: `UnityEngine.Graphics' does not contain a definition for `DrawProceduralIndirectNow'
// apply bokeh candidates
Graphics.SetRenderTarget(dest2);
ComputeBuffer.CopyCount(cbPoints, cbDrawArgs, 0);
dx11bokehMaterial.SetBuffer("pointBuffer", cbPoints);
dx11bokehMaterial.SetTexture("_MainTex", dx11BokehTexture);
dx11bokehMaterial.SetVector("_Screen", new Vector3(1.0f / (1.0f * source.width), 1.0f / (1.0f * source.height), internalBlurWidth));
dx11bokehMaterial.SetPass(2);
Graphics.DrawProceduralIndirectNow (MeshTopology.Points, cbDrawArgs, 0);
Graphics.Blit(dest2, destination); // hackaround for DX11 high resolution flipfun (OPTIMIZEME)
RenderTexture.ReleaseTemporary(dest2);
RenderTexture.ReleaseTemporary(rtSuperLow1);
RenderTexture.ReleaseTemporary(rtSuperLow2);
}
else
{
rtLow = RenderTexture.GetTemporary(source.width >> 1, source.height >> 1, 0, source.format);
rtLow2 = RenderTexture.GetTemporary(source.width >> 1, source.height >> 1, 0, source.format);
fgBlurDist = internalBlurWidth * foregroundOverlap;
Comment
I did not write all the script if you want me to write it all please tell me .