diff options
author | Anton Fedchin <afedchin@ruswizards.com> | 2015-04-22 20:07:12 +0300 |
---|---|---|
committer | Anton Fedchin <afedchin@ruswizards.com> | 2015-07-04 10:24:33 +0300 |
commit | e603e18f0eb374fa1f3a9951eb0855ab03cf345f (patch) | |
tree | 701c24817d9af74f1b9efa2142282c94b392bb28 /system/shaders/guishader_texture.hlsl | |
parent | 8bb349c9fd46e45a5c6f564b163332e360bb9707 (diff) |
[win32] Added DirectX11 GUI shaders.
Diffstat (limited to 'system/shaders/guishader_texture.hlsl')
-rw-r--r-- | system/shaders/guishader_texture.hlsl | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/system/shaders/guishader_texture.hlsl b/system/shaders/guishader_texture.hlsl new file mode 100644 index 0000000000..b557e3bf80 --- /dev/null +++ b/system/shaders/guishader_texture.hlsl @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2005-2015 Team Kodi + * http://kodi.tv + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This Program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with XBMC; see the file COPYING. If not, see + * <http://www.gnu.org/licenses/>. + * + */ + +#include "guishader_common.hlsl" + +Texture2D texMain : register(t0); + +float4 PS(PS_INPUT input) : SV_TARGET +{ + return input.color * texMain.Sample(LinearSampler, input.tex); +} + + |