RetroArch/gfx/shader_hlsl.h

42 lines
1.3 KiB
C
Raw Normal View History

2012-04-21 21:13:50 +00:00
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2012 - Hans-Kristian Arntzen
* Copyright (C) 2011-2012 - Daniel De Matteis
*
2012-04-21 21:13:50 +00:00
* RetroArch 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 Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
2012-04-21 21:13:50 +00:00
* RetroArch 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.
*
2012-04-21 21:31:57 +00:00
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
2012-04-21 21:25:32 +00:00
#ifndef __RARCH_HLSL_H
#define __RARCH_HLSL_H
#include "../boolean.h"
#include <stdint.h>
2012-04-16 16:11:20 +00:00
bool hlsl_init(const char *path, IDirect3DDevice9 *device_ptr);
void hlsl_deinit(void);
void hlsl_set_proj_matrix(XMMATRIX rotation_value);
2012-04-15 18:02:51 +00:00
void hlsl_set_params(unsigned width, unsigned height,
unsigned tex_width, unsigned tex_height,
2012-04-16 02:21:49 +00:00
unsigned out_width, unsigned out_height,
unsigned frame_count);
void hlsl_use(unsigned index);
bool hlsl_load_shader(unsigned index, const char *path);
2012-04-21 21:25:32 +00:00
#define RARCH_HLSL_MAX_SHADERS 16
#endif