mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-15 07:20:31 +02:00
Headless: --disable-gpu-features=framebuffer-fetch
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5132173d39
commit
fbe1224fed
3 files changed
+5
-3
No files matched your search
+1
-1
@@ -207,7 +207,7 @@ static const CommandLineParam g_autoParams[] = {
|
||||
{POFF(replayEnd), CmdParamType::Int, "replay-end", '\0', "When replaying a GE frame dump, only draw primitives up to this one (1-based)", CmdLineMode::Headless},
|
||||
{POFF(dumpCompat), CmdParamType::Bool, "dump-compat", '\0', "Apply the game's compat.ini settings when replaying a GE frame dump (off by default)", CmdLineMode::Headless},
|
||||
{POFF(hardwareTransform), CmdParamType::Bool, "hardware-transform", '\0', "Transform vertices on the GPU (default true); false transforms them on the CPU", CmdLineMode::Headless},
|
||||
{POFF(disableGPUFeatures), CmdParamType::String, "disable-gpu-features", '\0', "Act as if the GPU lacked these, to test the fallbacks: comma-separated clip-distance, cull-distance, depth-clamp", CmdLineMode::Headless},
|
||||
{POFF(disableGPUFeatures), CmdParamType::String, "disable-gpu-features", '\0', "Act as if the GPU lacked these, to test the fallbacks: comma-separated clip-distance, cull-distance, depth-clamp, framebuffer-fetch", CmdLineMode::Headless},
|
||||
{POFF(depthFilenameSave), CmdParamType::String, "depth-save", '\0', "Save the depth buffer to FILE along with the screenshot (u32 width, u32 height, u16 depths; float depths if FILE ends in .f32)", CmdLineMode::Headless},
|
||||
{POFF(screenshotRenderTarget), CmdParamType::Bool, "screenshot-render-target", '\0', "Take screenshots of the current render target instead of the displayed framebuffer", CmdLineMode::Headless},
|
||||
{POFF(screenshotFilenameDiff), CmdParamType::String, "screenshot-diff", '\0', "Save a visual comparison image to FILE when comparing screenshots", CmdLineMode::Headless},
|
||||
|
||||
+1
-1
@@ -189,7 +189,7 @@ struct CommandLineOptions {
|
||||
// Headless: apply the game's compatibility settings when replaying a GE frame dump.
|
||||
std::optional<bool> dumpCompat;
|
||||
std::optional<bool> hardwareTransform;
|
||||
// Headless: comma-separated clip-distance, cull-distance, depth-clamp.
|
||||
// Headless: comma-separated clip-distance, cull-distance, depth-clamp, framebuffer-fetch.
|
||||
std::optional<std::string> disableGPUFeatures;
|
||||
std::optional<bool> screenshotRenderTarget;
|
||||
std::optional<std::string> screenshotFilenameDiff;
|
||||
|
||||
@@ -1128,8 +1128,10 @@ int main(int argc, const char* argv[]) {
|
||||
coreParameter.disabledGPUFeatures |= GPU_USE_CULL_DISTANCE;
|
||||
} else if (name == "depth-clamp") {
|
||||
coreParameter.disabledGPUFeatures |= GPU_USE_DEPTH_CLAMP;
|
||||
} else if (name == "framebuffer-fetch") {
|
||||
coreParameter.disabledGPUFeatures |= GPU_USE_FRAMEBUFFER_FETCH;
|
||||
} else {
|
||||
fprintf(stderr, "Unknown feature for --disable-gpu-features: %s (expected clip-distance, cull-distance or depth-clamp)\n", name.c_str());
|
||||
fprintf(stderr, "Unknown feature for --disable-gpu-features: %s (expected clip-distance, cull-distance, depth-clamp or framebuffer-fetch)\n", name.c_str());
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user