public D3DRenderComponent() { CanRender = true; IsModified = true; disposer = new DisposeObserver(); TransformWorldBuffer = new DisposableSetter <SharpDX.Direct3D11.Buffer>(disposer); VertexBuffer = new DisposableSetter <SharpDX.Direct3D11.Buffer>(disposer); IndexBuffer = new DisposableSetter <SharpDX.Direct3D11.Buffer>(disposer); DepthStencilState = new DisposableSetter <DepthStencilState>(disposer); BlendingState = new DisposableSetter <BlendState>(disposer); MaterialBuffer = new DisposableSetter <SharpDX.Direct3D11.Buffer>(disposer); SampleState = new DisposableSetter <SamplerState>(disposer); TextureResources = new EnumerableDisposableSetter <ShaderResourceView[]>(disposer); }
protected NestedRenderTechniqueSystem() { disposer = new DisposeObserver(); }