public void Dispose()
{
if ( mTexCoordVertexBuffer != null )
{
mTexCoordVertexBuffer.Dispose();
mTexCoordVertexBuffer = null;
}
if ( mPositionVertexBuffer != null )
{
mPositionVertexBuffer.Dispose();
mPositionVertexBuffer = null;
}
if ( mRenderGreyScaleTexture3DInputLayout != null )
{
mRenderGreyScaleTexture3DInputLayout.Dispose();
mRenderGreyScaleTexture3DInputLayout = null;
}
if ( mRenderTexture3DInputLayout != null )
{
mRenderTexture3DInputLayout.Dispose();
mRenderTexture3DInputLayout = null;
}
if ( mRenderSolidInputLayout != null )
{
mRenderSolidInputLayout.Dispose();
mRenderSolidInputLayout = null;
}
if ( mRenderWireframeInputLayout != null )
{
mRenderWireframeInputLayout.Dispose();
mRenderWireframeInputLayout = null;
}
mEffect.Dispose();
}