Пример #1
0
 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;
 }
Пример #2
0
 public override void Shutdown()
 {
     base.Shutdown();
     ConstantShaderParamBuffer?.Dispose();
     ConstantShaderParamBuffer = null;
 }