public void Dispose() { if (device == null) { return; } vertexShader.Dispose(); pixelShader.Dispose(); vertexShader = null; pixelShader = null; }
public void Dispose(bool fin) { lock (syncRoot) { batch.Dispose(); pixelShaderCode.Dispose(); vertexShaderCode.Dispose(); if (!fin) { GC.SuppressFinalize(this); } } }
public void Dispose() { if (device == null) { return; } vertexShader.Dispose(); pixelShader.Dispose(); alignedQuad.Dispose(); pixelTypelessConstantBuffer.Dispose(); alignedQuad = null; vertexShader = null; pixelShader = null; device = null; }