Skip to content

Commit

Permalink
feat: Updating patterns and stringification ( Fixes #163 )
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Feb 13, 2024
1 parent e4ba7f0 commit ed42395
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Build/obs--shaders.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ if (-not (Test-Path $ShaderCommandsPath)) {
$null = New-Item -ItemType Directory -path $ShaderCommandsPath
}

$FindShaderParameters = '^[^/]{0,}uniform\s{1,}(?<Type>\S+)\s{1,}(?<ParameterName>[\S-[\<\;]]+)'
$FindShaderParameters = '[^/]{0,}uniform\s{1,}(?<Type>\S+)\s{1,}(?<ParameterName>[\S-[\<\;]]+)'

$AllShaderParameters = $ShaderFiles |
Select-String $FindShaderParameters
Expand Down Expand Up @@ -127,7 +127,7 @@ Processing $($shaderParameterInSet | Out-String)
Out-File -Path $env:GITHUB_STEP_SUMMARY -Append
}

$shaderMatch = "$(@($shaderParameterInSet.Matches()))" -match $FindShaderParameters
$shaderMatch = "$(@("$($shaderParameterInSet)") -join '')" -match $FindShaderParameters
$shaderMatch = [Ordered]@{} + $matches
$shaderParameterSystemName = $shaderMatch.ParameterName

Expand Down

0 comments on commit ed42395

Please sign in to comment.