Rewrite Vulkan backend with native renderer

This commit is contained in:
Spooks
2026-07-15 13:27:47 -06:00
parent 864cbb0fa0
commit 5594d89cbd
21 changed files with 2518 additions and 1 deletions
+26
View File
@@ -96,6 +96,19 @@ jobs:
Directory.Packages.props
Directory.Build.props
- name: Install Windows native GPU dependencies
shell: pwsh
run: |
& "$env:VCPKG_INSTALLATION_ROOT\vcpkg.exe" install sdl3:x64-windows vulkan:x64-windows
cmake `
-S src/SharpEmu.Gpu.Vulkan.Native `
-B artifacts/native/gpu-vulkan `
-A x64 `
-DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake" `
-DVCPKG_TARGET_TRIPLET=x64-windows `
-DBUILD_TESTING=OFF
- name: Restore solution
run: dotnet restore SharpEmu.slnx
@@ -114,6 +127,19 @@ jobs:
- name: Publish win-x64 CLI
run: dotnet publish src/SharpEmu.CLI/SharpEmu.CLI.csproj -c Release -r win-x64 --self-contained true --no-restore -p:PublishDir="${env:PUBLISH_DIR}"
- name: Verify Windows native GPU runtime
shell: pwsh
run: |
$required = @(
(Join-Path $env:PUBLISH_DIR 'sharpemu_gpu_vulkan.dll'),
(Join-Path $env:PUBLISH_DIR 'SDL3.dll')
)
foreach ($path in $required) {
if (-not (Test-Path $path)) {
throw "Missing native GPU runtime: $path"
}
}
- name: Create release archive
run: |
New-Item -ItemType Directory -Path $env:RELEASE_DIR -Force | Out-Null