mirror of https://github.com/xemu-project/xemu.git
41 lines
1.2 KiB
C
41 lines
1.2 KiB
C
/*
|
|
* Geforce NV2A PGRAPH GLSL Shader Generator
|
|
*
|
|
* Copyright (c) 2025 Matt Borgerson
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library 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
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef HW_XBOX_NV2A_PGRAPH_GLSL_SHADERS_H
|
|
#define HW_XBOX_NV2A_PGRAPH_GLSL_SHADERS_H
|
|
|
|
#include "vsh.h"
|
|
#include "geom.h"
|
|
#include "psh.h"
|
|
|
|
typedef struct ShaderState {
|
|
VshState vsh;
|
|
GeomState geom;
|
|
PshState psh;
|
|
} ShaderState;
|
|
|
|
typedef struct PGRAPHState PGRAPHState;
|
|
|
|
ShaderState pgraph_glsl_get_shader_state(PGRAPHState *pg);
|
|
|
|
bool pgraph_glsl_check_shader_state_dirty(PGRAPHState *pg,
|
|
const ShaderState *state);
|
|
|
|
#endif
|