mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 11:13:44 +01:00
[GPU] Make static and const methods if possible
This commit is contained in:
1 parent
8aac45fec0
commit
b57dab2812
32 files changed
+64
-64
No files matched your search
@@ -1019,13 +1019,13 @@ int DrawEngineCommon::DecodeInds() {
|
||||
return indexGen.VertexCount();
|
||||
}
|
||||
|
||||
bool DrawEngineCommon::CanUseHardwareTransform(int prim) {
|
||||
bool DrawEngineCommon::CanUseHardwareTransform(int prim) const {
|
||||
if (!useHWTransform_)
|
||||
return false;
|
||||
return !gstate.isModeThrough() && prim != GE_PRIM_RECTANGLES && prim > GE_PRIM_LINE_STRIP;
|
||||
}
|
||||
|
||||
bool DrawEngineCommon::CanUseHardwareTessellation(GEPatchPrimType prim) {
|
||||
bool DrawEngineCommon::CanUseHardwareTessellation(GEPatchPrimType prim) const {
|
||||
if (useHWTessellation_) {
|
||||
return CanUseHardwareTransform(PatchPrimToPrim(prim));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user