static public int RemoveCommandBuffer(IntPtr l) { try { UnityEngine.Camera self = (UnityEngine.Camera)checkSelf(l); UnityEngine.Rendering.CameraEvent a1; checkEnum(l, 2, out a1); UnityEngine.Rendering.CommandBuffer a2; checkType(l, 3, out a2); self.RemoveCommandBuffer(a1, a2); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int RemoveCommandBuffer(IntPtr l) { try { UnityEngine.Camera self = (UnityEngine.Camera)checkSelf(l); UnityEngine.Rendering.CameraEvent a1; checkEnum(l, 2, out a1); UnityEngine.Rendering.CommandBuffer a2; checkType(l, 3, out a2); self.RemoveCommandBuffer(a1, a2); return(0); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
/// <summary> /// Remove the command buffer from the camera. /// </summary> public virtual void Remove(Camera cam) { if (m_data.ContainsKey(cam)) { CommandData data = m_data[cam]; cam.RemoveCommandBuffer(Event, data.command); m_data.Remove(cam); } }
private void RemoveCommandBuffersFromCamera(Camera camera, CommandBuffer normalBuffer) { if (m_copyTransmission != null) { camera.RemoveCommandBuffer(CameraEvent.AfterGBuffer, m_copyTransmission); } if (normalBuffer != null) { camera.RemoveCommandBuffer(CameraEvent.BeforeLighting, normalBuffer); } if (m_releaseDeferredPlus != null) { camera.RemoveCommandBuffer(CameraEvent.AfterLighting, m_releaseDeferredPlus); } }