Hot reload Aquarium shaders in process
This commit is contained in:
parent
b734a58f12
commit
4c6cb24f4c
5 changed files with 122 additions and 16 deletions
|
|
@ -16,6 +16,7 @@ $slotRoot = Join-Path $devRoot "slots"
|
|||
$statePath = Join-Path $devRoot "state.clixml"
|
||||
$buildStatePath = Join-Path $devRoot "last-build.clixml"
|
||||
$cultCachePath = Join-Path $devRoot "cultcache\aquarium-client.msgpack"
|
||||
$shaderSourcePath = Join-Path $repoRoot "src\Aquarium.Engine\Render\Shaders\Aquarium.hlsl"
|
||||
$stdoutLogPath = Join-Path $devRoot "latest.out.log"
|
||||
$stderrLogPath = Join-Path $devRoot "latest.err.log"
|
||||
|
||||
|
|
@ -156,7 +157,7 @@ if (-not (Test-Path $exePath)) {
|
|||
throw "Expected apphost was not produced: $exePath"
|
||||
}
|
||||
|
||||
$arguments = @("--cache", $cultCachePath)
|
||||
$arguments = @("--cache", $cultCachePath, "--shader-source", $shaderSourcePath)
|
||||
if ($Headless) {
|
||||
$arguments += "--headless"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ function Get-WatchedFiles {
|
|||
Where-Object {
|
||||
$_.FullName -notmatch "\\bin\\" -and
|
||||
$_.FullName -notmatch "\\obj\\" -and
|
||||
$_.Extension -in @(".cs", ".csproj", ".hlsl", ".json", ".slnx")
|
||||
$_.Extension -in @(".cs", ".csproj", ".json", ".slnx")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue