mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-27 15:30:35 +00:00
d8651fd85b
Probably a very small perf optimization.
50 lines
1.4 KiB
C++
50 lines
1.4 KiB
C++
// Copyright (c) 2012- PPSSPP Project.
|
|
|
|
// 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, version 2.0 or later versions.
|
|
|
|
// 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 2.0 for more details.
|
|
|
|
// A copy of the GPL 2.0 should have been included with the program.
|
|
// If not, see http://www.gnu.org/licenses/
|
|
|
|
// Official git repository and contact information can be found at
|
|
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
|
|
|
#pragma once
|
|
|
|
#include "GPU/Common/ShaderID.h"
|
|
|
|
namespace DX9 {
|
|
|
|
void GenerateVertexShaderHLSL(const VShaderID &id, char *buffer, ShaderLanguage lang = HLSL_DX9);
|
|
|
|
enum {
|
|
CONST_VS_PROJ = 0,
|
|
CONST_VS_PROJ_THROUGH = 4,
|
|
CONST_VS_VIEW = 8,
|
|
CONST_VS_WORLD = 11,
|
|
CONST_VS_TEXMTX = 14,
|
|
CONST_VS_UVSCALEOFFSET = 17,
|
|
CONST_VS_FOGCOEF = 18,
|
|
CONST_VS_AMBIENT = 19,
|
|
CONST_VS_MATAMBIENTALPHA = 20,
|
|
CONST_VS_MATDIFFUSE = 21,
|
|
CONST_VS_MATSPECULAR = 22,
|
|
CONST_VS_MATEMISSIVE = 23,
|
|
CONST_VS_LIGHTPOS = 24,
|
|
CONST_VS_LIGHTDIR = 28,
|
|
CONST_VS_LIGHTATT = 32,
|
|
CONST_VS_LIGHTANGLE_SPOTCOEF = 36,
|
|
CONST_VS_LIGHTDIFFUSE = 40,
|
|
CONST_VS_LIGHTSPECULAR = 44,
|
|
CONST_VS_LIGHTAMBIENT = 48,
|
|
CONST_VS_DEPTHRANGE = 52,
|
|
};
|
|
|
|
};
|