feat(render): implement Campaign AR and terrain fidelity
This commit is contained in:
parent
99cf26e00c
commit
7a5f96ede5
368 changed files with 50611 additions and 950 deletions
|
|
@ -36,6 +36,12 @@
|
|||
Use glslc when available. On by default; pass -PreferSdk:$false to force the
|
||||
managed path, which is what a comparison between the two wants.
|
||||
|
||||
.PARAMETER ForceRecompile
|
||||
Recompile even when the existing manifest proves that a source and its
|
||||
committed SPIR-V artifact are unchanged. Use this only when validating a
|
||||
compiler/toolchain change; ordinary regeneration preserves exact retail
|
||||
binaries while compiling every changed shader.
|
||||
|
||||
.EXAMPLE
|
||||
tools/compile-shaders.ps1
|
||||
#>
|
||||
|
|
@ -43,7 +49,8 @@
|
|||
param(
|
||||
[string]$ShadersDirectory,
|
||||
[string]$OutputDirectory,
|
||||
[bool]$PreferSdk = $true
|
||||
[bool]$PreferSdk = $true,
|
||||
[switch]$ForceRecompile
|
||||
)
|
||||
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
|
@ -149,7 +156,9 @@ if (-not (Test-Path $native)) {
|
|||
Write-Step "shaderc native: $native"
|
||||
|
||||
Write-Step "compiling $ShadersDirectory -> $OutputDirectory"
|
||||
& dotnet $binary $ShadersDirectory $OutputDirectory
|
||||
$compilerArguments = @($binary, $ShadersDirectory, $OutputDirectory)
|
||||
if ($ForceRecompile) { $compilerArguments += '--force' }
|
||||
& dotnet @compilerArguments
|
||||
if ($LASTEXITCODE -ne 0) { throw "Shader compilation failed with exit code $LASTEXITCODE." }
|
||||
|
||||
Write-Step 'done'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue