[GPU] Make static and const methods if possible

This commit is contained in:
Herman Semenov committed 2024-04-05 17:04:31 +03:00
1 parent 8aac45fec0
commit b57dab2812
32 files changed
+64 -64

No files matched your search

+2 -2
View File
@@ -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));
}