Esempio n. 1
0
        public void RenderValuePlot(OperatorPartContext context, RenderViewConfiguration renderConfig)
        {
            SetupContextForGeometry(context);

            renderConfig.Operator.Outputs[renderConfig.ShownOutputIndex].Eval(context);

            context.Variables[OperatorPartContext.PLOT_FLOAT_VALUE] = context.Value;

            var invalidator = new OperatorPart.InvalidateInvalidatables();

            _plotValueOperator.Outputs[0].TraverseWithFunction(null, invalidator);

            _plotValueOperator.Outputs[0].Eval(context);
            _gpuSyncer.Sync(D3D11Device.ImmediateContext);
        }
Esempio n. 2
0
        public D3DRenderSetup(RenderViewConfiguration renderConfiguration)
        {
            RenderConfig = renderConfiguration;
            InitRenderTargets();
            _renderer = OperatorPartContext.DefaultRenderer;

            var sceneGridDefinition = MetaManager.Instance.GetMetaOperator(Guid.Parse("a5930d73-3db3-4785-b8c0-991b6fbfe3fc"));

            _sceneGridOperator = sceneGridDefinition.CreateOperator(Guid.Empty);

            var imageBackgroundDefinition = MetaManager.Instance.GetMetaOperator(Guid.Parse("1e4f6cd4-86fa-4c8f-833c-0b8c128cf221"));

            _imageBackgroundOperator = imageBackgroundDefinition.CreateOperator(Guid.Empty);

            var cubemapSphereDefinition = MetaManager.Instance.GetMetaOperator(Guid.Parse("276da400-ea2d-4769-9e69-07dd652c928e"));

            _cubemapSphereOperator = cubemapSphereDefinition.CreateOperator(Guid.Empty);

            var plotValueDefinition = MetaManager.Instance.GetMetaOperator(Guid.Parse("0fa9a212-427c-4098-a429-7996ad36be5d"));

            _plotValueOperator = plotValueDefinition.CreateOperator(Guid.Empty);
        }