<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VVVV.PluginInterfaces.V2;
using VVVV.PluginInterfaces.V1;

using SlimDX;
using VVVV.Utils.VMath;

using VVVV.DX11.Lib.Devices;
using SlimDX.Direct3D11;
using System.ComponentModel.Composition;
using VVVV.Hosting.Pins;
using VVVV.DX11.Internals.Helpers;
using VVVV.DX11.Internals;
using VVVV.DX11.Lib.Rendering;

using FeralTic.DX11;
using FeralTic.DX11.Queries;
using FeralTic.DX11.Resources;

namespace VVVV.DX11.Nodes.Renderers.Graphics
{
    [PluginInfo(Name = "Renderer", Category = "DX11", Version = "Volume", Author = "vux", AutoEvaluate = false)]
    public class DX11VolumeRendererNode : IPluginEvaluate, IDX11RendererProvider, IDisposable, IDX11Queryable
    {
        protected IPluginHost FHost;

        [Input("Layer", Order = 1, IsSingle = true)]
        protected Pin<DX11Resource<DX11Layer>> FInLayer;

        [Input("Texture Size", Order = 5, DefaultValues = new double[] { 32, 32,8 })]
        protected IDiffSpread<Vector3D> FInTextureSize;

        [Input("Background Color", DefaultColor = new double[] { 0, 0, 0, 1 }, Order = 7)]
        protected ISpread<Color4> FInBgColor;

        [Input("Clear", DefaultValue = 1, Order = 8)]
        protected ISpread<bool> FInClear;

        [Input("Enabled", DefaultValue = 1, Order = 9)]
        protected ISpread<bool> FInEnabled;

        [Input("Bind As Target", DefaultValue = 0, Order = 10, Visibility= PinVisibility.OnlyInspector)]
        protected ISpread<bool> FInBindTarget;

        [Input("View", Order = 10)]
        protected IDiffSpread<Matrix> FInView;<commit_msg>Volume renderer also binds target by default.<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VVVV.PluginInterfaces.V2;
using VVVV.PluginInterfaces.V1;

using SlimDX;
using VVVV.Utils.VMath;

using VVVV.DX11.Lib.Devices;
using SlimDX.Direct3D11;
using System.ComponentModel.Composition;
using VVVV.Hosting.Pins;
using VVVV.DX11.Internals.Helpers;
using VVVV.DX11.Internals;
using VVVV.DX11.Lib.Rendering;

using FeralTic.DX11;
using FeralTic.DX11.Queries;
using FeralTic.DX11.Resources;

namespace VVVV.DX11.Nodes.Renderers.Graphics
{
    [PluginInfo(Name = "Renderer", Category = "DX11", Version = "Volume", Author = "vux", AutoEvaluate = false)]
    public class DX11VolumeRendererNode : IPluginEvaluate, IDX11RendererProvider, IDisposable, IDX11Queryable
    {
        protected IPluginHost FHost;

        [Input("Layer", Order = 1, IsSingle = true)]
        protected Pin<DX11Resource<DX11Layer>> FInLayer;

        [Input("Texture Size", Order = 5, DefaultValues = new double[] { 32, 32,8 })]
        protected IDiffSpread<Vector3D> FInTextureSize;

        [Input("Background Color", DefaultColor = new double[] { 0, 0, 0, 1 }, Order = 7)]
        protected ISpread<Color4> FInBgColor;

        [Input("Clear", DefaultValue = 1, Order = 8)]
        protected ISpread<bool> FInClear;

        [Input("Enabled", DefaultValue = 1, Order = 9)]
        protected ISpread<bool> FInEnabled;

        [Input("Bind As Target", DefaultValue = 1, Order = 10, Visibility= PinVisibility.OnlyInspector)]
        protected ISpread<bool> FInBindTarget;

        [Input("View", Order = 10)]
        protected IDiffSpread<Matrix> FInView;
{'fraction_non_alphanumeric': 0.11533852606351108, 'fraction_numerical': 0.033553025763930495, 'mean_word_length': 4.013513513513513, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1920093', 'n_tokens_mistral': 1205, 'n_tokens_neox': 1074, 'n_words': 257}