Files
issn_pc/tests/test_amd_paths.cpp
Claude 9d58f99a89 Refactor: GOW3/gow3 -> ISSN/issn em arquivos, variáveis e nomes; launcher 0.2.0
- Caminhos e conteúdo: GOW3_ -> ISSN_, Gow3 -> Issn, gow3 -> issn, tags "gow3:" -> "port:".
  Créditos e links ao gow3_pc (Felipe Prado) mantidos; a documentação herdada do port do
  God of War III foi para docs/base/.
- run.py aceita as variáveis GOW3_ antigas (viram ISSN_ quando a nova não está definida).
- build.sh: se o patch antigo do fsr-vulkan já estiver aplicado no submódulo, volta ao commit
  fixado e aplica o novo.
- Menu do jogo: os cheats do God of War III só aparecem quando algum é suportado.
- Launcher 0.2.0: tema novo, seção inFAMOUS (Efeitos, prioridade do compute, distância de
  detalhe), "Salvar relatório de bug", sem os cheats do GoW3, atualização pelos releases
  deste repositório (silenciosa enquanto ele for privado), traduções em português.
- README-Windows: 0.2.0 e novidades.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XzE465ySHDfaMBVSJyYtNw
2026-10-17 14:12:26 -03:00

41 lines
1.4 KiB
C++

// SPDX-License-Identifier: GPL-2.0-or-later
// ISSN_AMD_PATHS_OFF=mixed,shaderext (vk_amd_paths.h): runs the shared core without the device
// extensions only AMD exposes, so a tester can tell an AMD-only code path from the driver.
// No game or Vulkan device required.
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <string>
#include "video_core/renderer_vulkan/vk_amd_paths.h"
using namespace Vulkan;
int main() {
#ifdef _WIN32
_set_error_mode(_OUT_TO_STDERR);
#endif
using AmdPathsOff::Flags;
const Flags none{};
assert(AmdPathsOff::Parse(nullptr) == none);
assert(AmdPathsOff::Parse("") == none);
assert(AmdPathsOff::Parse("0") == none);
assert(!none.Any());
const Flags both{.mixed = true, .shaderext = true};
assert(AmdPathsOff::Parse("mixed,shaderext") == both);
assert(AmdPathsOff::Parse("all") == both);
assert(AmdPathsOff::Parse("1") == both);
assert((AmdPathsOff::Parse("shaderext") == Flags{.shaderext = true}));
assert((AmdPathsOff::Parse("bogus,mixed") == Flags{.mixed = true}));
assert(AmdPathsOff::Parse("Mixed shaderExt") == both);
assert(both.Any());
assert(AmdPathsOff::Marker(both) == "GPU: amd paths off: mixed shaderext");
assert((AmdPathsOff::Marker(Flags{.mixed = true}) == "GPU: amd paths off: mixed"));
assert(AmdPathsOff::Marker(none).empty());
std::puts("amd paths knob OK");
return EXIT_SUCCESS;
}