[spline/bezier]Add some variables in gpu state cache for hardware tessellation.

This commit is contained in:
xebra 2017-01-07 01:19:09 +09:00 committed by Henrik Rydgård
parent 192d8f3601
commit b78e184c51

View file

@ -395,6 +395,7 @@ struct GPUgstate {
bool isSkinningEnabled() const { return ((vertType & GE_VTYPE_WEIGHT_MASK) != GE_VTYPE_WEIGHT_NONE); }
GEPatchPrimType getPatchPrimitiveType() const { return static_cast<GEPatchPrimType>(patchprimitive & 3); }
bool isPatchNormalsReversed() const { return patchfacing & 1; }
// Transfers
u32 getTransferSrcAddress() const { return (transfersrc & 0xFFFFF0) | ((transfersrcw & 0xFF0000) << 8); }
@ -502,6 +503,14 @@ struct GPUStateCache {
UVScale uv;
bool bezier;
bool spline;
int bezier_count_u;
int spline_count_u;
int spline_count_v;
int spline_type_u;
int spline_type_v;
bool bgraTexture;
bool needShaderTexClamp;
bool allowShaderBlend;