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 DeviceContextBaseStreamOutput(int maxTargetsCount) { targets = new DeviceContextBaseResettingArrayBinding<StreamOutputTarget>(maxTargetsCount, StreamOutputTarget.Equals); }
public DeviceContextBaseRasterizer(int maxViewportsCount) { state = new DirtyProperty<IRasterizerState>(); scissorRectangles = new DeviceContextBaseResettingArrayBinding<IntRectangle>(maxViewportsCount, IntRectangle.Equals); viewports = new DeviceContextBaseResettingArrayBinding<Viewport>(maxViewportsCount, Viewport.Equals); }