Example #1
0
        public void Flush(DeviceManager deviceManager)
        {
            deviceManager.ActiveViewTransform?.AutoApply(this);

            DefaultParameters.Apply(this);

            ValidateParameters();

            Flush_Epilogue(deviceManager);
        }
Example #2
0
        public void Flush(DeviceManager deviceManager, ref MaterialParameterValues parameters)
        {
            deviceManager.ActiveViewTransform?.AutoApply(this);

            // FIXME: Avoid double-set for cases where there is a default + override, since it's wasteful
            DefaultParameters.Apply(this);
            parameters.Apply(this);

            ValidateParameters();

            Flush_Epilogue(deviceManager);
        }