public override void Shutdown() { ConstantLightBuffer?.Dispose(); ConstantLightBuffer = null; ConstantCameraBuffer?.Dispose(); ConstantCameraBuffer = null; ConstantMatrixBuffer?.Dispose(); ConstantMatrixBuffer = null; ConstantShaderParamBuffer?.Dispose(); ConstantShaderParamBuffer = null; SamplerState?.Dispose(); SamplerState = null; Layout?.Dispose(); Layout = null; PixelShader?.Dispose(); PixelShader = null; VertexShader?.Dispose(); VertexShader = null; }
public override void Shutdown() { base.Shutdown(); ConstantShaderParamBuffer?.Dispose(); ConstantShaderParamBuffer = null; }