Esempio n. 1
0
        public void Dispose_Sampler()
        {
            Sampler s = RF.CreateSampler(SamplerDescription.Point);

            s.Dispose();
            Assert.True(s.IsDisposed);
        }
Esempio n. 2
0
 public void Dispose()
 {
     ResourceSet.Dispose();
     ResourceLayout.Dispose();
     Sampler.Dispose();
     Texture.Dispose();
 }
Esempio n. 3
0
 public void Dispose()
 {
     deactivated = true;
     if (Sampler != null)
     {
         Sampler.Dispose();
     }
     Result.Dispose();
 }
Esempio n. 4
0
 public new void Dispose()
 {
     base.Dispose();
     linearSampler.Dispose();
     fontSampler.Dispose();
     foreach (var material in materials.Values)
     {
         material.Texture?.Dispose();
         material.Dispose();
     }
 }
        public void Dispose()
        {
            ThrowIfDisposed();

            sampler.Dispose();
            if (disposeTexture)
            {
                texture.Dispose();
            }
            disposed = true;
        }
Esempio n. 6
0
 public void Dispose()
 {
     if (_initialized)
     {
         _sampler.Dispose();
         _texture.Dispose();
         _program.Dispose();
         _vao.Dispose();
         _vbo.Dispose();
     }
     _initialized = false;
 }
        public void Dispose()
        {
            outlineTexture.Dispose();
            renderTexture.Dispose();

            depthStencilZWrite.Dispose();
            depthStencilNoZWrite.Dispose();
            defaultSampler.Dispose();
            instancesBuffer.Dispose();
            pixelShaderSceneBuffer.Dispose();
            objectBuffer.Dispose();
            sceneBuffer.Dispose();
        }
Esempio n. 8
0
        public void Dispose()
        {
            if (_disposed)
            {
                return;
            }

            foreach (var pipeline in _pipelines.Values)
            {
                pipeline.Dispose();
            }

            foreach (var t in _textureResourceSets)
            {
                t?.Dispose();
            }
            foreach (var t in _textureViews)
            {
                t?.Dispose();
            }
            _textureLayout.Dispose();

            _wvpSet.Dispose();
            _wvpBuffer.Dispose();
            _wvpLayout.Dispose();

            foreach (var s in _samplerResourceSets)
            {
                if (s.IsValueCreated)
                {
                    s.Value.Dispose();
                }
            }

            _linearClamp?.Dispose();
            _pointClamp?.Dispose();
            _anisotropicClamp?.Dispose();

            _samplerLayout.Dispose();

            _vertexShader.Dispose();
            _fragmentShader.Dispose();
            _commandList.Dispose();
            _vertexBuffer.Dispose();
            _indexBuffer.Dispose();

            _disposed = true;
        }
Esempio n. 9
0
        public void Dispose()
        {
            CheckersShader.Dispose();
            Vao.Dispose();
            samplerLinear.Dispose();
            samplerLinearMip.Dispose();
            samplerNearest.Dispose();
            samplerNearestMip.Dispose();
            TextureCache.Clear();
            GetPixelShader.Dispose();
            SrgbShader.Dispose();
            ExportShader.Dispose();

            LinearMaxStatistics.Dispose();
            SrgbMaxStatistics.Dispose();
            LinearMinStatistics.Dispose();
            SrgbMinStatistics.Dispose();
        }
Esempio n. 10
0
        public void ReleaseDeviceResources()
        {
            oclFullyInitialized = false;
            if (OCLSampler != null)
            {
                OCLSampler.Dispose();
                OCLSampler = null;
            }
            if (OCLInputImage != null)
            {
                OCLInputImage.Dispose();
                OCLInputImage = null;
            }

            if (OCLOutputImage != null)
            {
                OCLOutputImage.Dispose();
                OCLOutputImage = null;
            }

            if (FilterKernel != null)
            {
                FilterKernel.Dispose();
                FilterKernel = null;
            }

            if (oclProgram != null)
            {
                oclProgram.Dispose();
                oclProgram = null;
            }

            if (oclCQ != null)
            {
                oclCQ.Dispose();
                oclCQ = null;
            }

            if (oclContext != null)
            {
                oclContext.Dispose();
                oclContext = null;
            }
        }
Esempio n. 11
0
 protected override void DisposeManaged()
 {
     base.DisposeManaged();
     Texture.Dispose();
     Sampler.Dispose();
 }
Esempio n. 12
0
 public static void Destory()
 {
     SamplersSet.Dispose();
     SamplersLayout.Dispose();
     _linearSampler.Dispose();
 }
Esempio n. 13
0
 public void Dispose()
 {
     Sampler?.Dispose();
     Reporter?.Dispose();
 }
Esempio n. 14
0
 public override void Dispose()
 {
     Tex?.Dispose();
     TexView?.Dispose();
     TexSampler?.Dispose();
 }