public DeviceContextBaseInputAssembler(int vertexSourceCount)
 {
     vertexSources = new DeviceContextBaseCumulativeArrayBinding<VertexSource>(vertexSourceCount, VertexSource.Equals);
     primitiveTopology = new DirtyProperty<PrimitiveTopology>();
     vertexLayout = new DirtyProperty<IVertexLayout>();
     indexSource = new DirtyProperty<IndexSource>();
 }
        public DeviceContextBaseOutputMerger(int maxRenderTargets, int maxUnorderedAccessResources)
        {
            renderTargets = new DeviceContextBaseResettingArrayBinding<IRenderTargetView>(maxRenderTargets, ReferenceEquals);
            depthStencil = new DirtyProperty<IDepthStencilView>();
            unorderedAccessResourcesOffset = new DirtyProperty<int>();
            unorderedAccessResources = new DeviceContextBaseResettingArrayBinding<IUnorderedAccessView>(maxUnorderedAccessResources, ReferenceEquals);
            initialCounts = new int[maxUnorderedAccessResources];
            initialCountChangedIndices = new SortedIntSet();

            blendState = new DirtyProperty<IBlendState>();
            blendFactor = new DirtyProperty<Color4>();
            sampleMask = new DirtyProperty<uint>(uint.MaxValue);

            depthStencilState = new DirtyProperty<IDepthStencilState>();
            stencilReference = new DirtyProperty<int>();
        }
 public DeviceContextBaseRasterizer(int maxViewportsCount)
 {
     state = new DirtyProperty<IRasterizerState>();
     scissorRectangles = new DeviceContextBaseResettingArrayBinding<IntRectangle>(maxViewportsCount, IntRectangle.Equals);
     viewports = new DeviceContextBaseResettingArrayBinding<Viewport>(maxViewportsCount, Viewport.Equals);
 }
示例#4
0
 set => SetValue(DirtyProperty, value);