Beispiel #1
0
        private void Update(EvaluationContext context)
        {
            var resourceManager = ResourceManager.Instance();
            var device          = resourceManager.Device;
            var deviceContext   = device.ImmediateContext;
            var iaStage         = deviceContext.InputAssembler;

            InputLayout.GetValue(context);
            VertexBuffers.GetValues(ref _vertexBuffer, context);
            IndexBuffer.GetValue(context);

            _prevTopology             = iaStage.PrimitiveTopology;
            iaStage.PrimitiveTopology = PrimitiveTopology.GetValue(context);
        }