// Methods
        public bool Initialize(Device device, IntPtr windowsHandle)
        {
            // Create the texture shader object.
            TextureShader = new DTextureShader();

            // Initialize the texture shader object.
            if (!TextureShader.Initialize(device, windowsHandle))
            {
                return(false);
            }

            // Create the light shader object.
            LightShader = new DLightShader();

            // Initialize the light shader object.
            if (!LightShader.Initialize(device, windowsHandle))
            {
                return(false);
            }

            // Create the bump map shader object.
            BumpMapShader = new DBumpMapShader();

            // Initialize the bump map shader object.
            if (!BumpMapShader.Initialize(device, windowsHandle))
            {
                return(false);
            }

            return(true);
        }
 public void ShutDown()
 {
     // Release the bump map shader object.
     BumpMapShader?.ShutDown();
     BumpMapShader = null;
     // Release the light shader object.
     LightShader?.ShutDown();
     LightShader = null;
     // Release the texture shader object.
     TextureShader?.ShutDown();
     TextureShader = null;
 }