File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -186,7 +186,6 @@ function Find-GlslangValidator () {
186186function Find-ClangFormat () {
187187 $repoConfiguration = Get-RepositoryConfiguration
188188 $LLVMMinimumVersion = $repoConfiguration.Requirements.LLVM.Version
189- $LLVMMaximumVersion = $repoConfiguration.Requirements.LLVM.MaximumVersion
190189
191190 $candidates = @ (
192191 ' clang-format'
@@ -204,14 +203,14 @@ function Find-ClangFormat () {
204203 if ($clangFormatCommand ) {
205204 if ((& $clangFormatCommand -- version | Out-String ) -match " clang-format version ([\d\.]*)" ) {
206205 [Version ] $clangFormatVersion = $Matches [1 ]
207- if ((CompareVersion $clangFormatVersion $LLVMMinimumVersion ) -and (CompareVersion $LLVMMaximumVersion $clangFormatVersion ) ) {
206+ if ((CompareVersion $clangFormatVersion $LLVMMinimumVersion ) ) {
208207 return $clangFormatCommand.Source
209208 }
210209 }
211210 }
212211 }
213212
214- throw " Failed to find clang-format min $LLVMMinimumVersion max $LLVMMaximumVersion . Tried: " + ($candidates -join ' , ' )
213+ throw " Failed to find clang-format min $LLVMMinimumVersion . Tried: " + ($candidates -join ' , ' )
215214}
216215
217216function Setup-ShaderCCompilerTool () {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ namespace ZEngine::Core
1515 ReadyCallback Ready = nullptr ;
1616 ExecuteCallback Action = nullptr ;
1717
18- operator bool () noexcept
18+ operator bool () noexcept
1919 {
2020 return (Ready && Action);
2121 }
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ namespace ZEngine::Hardwares
7272 VkBuffer Handle = VK_NULL_HANDLE ;
7373 VmaAllocation Allocation = nullptr ;
7474
75- operator bool () const
75+ operator bool () const
7676 {
7777 return (Handle != VK_NULL_HANDLE );
7878 }
@@ -86,7 +86,7 @@ namespace ZEngine::Hardwares
8686 VkSampler Sampler{VK_NULL_HANDLE };
8787 VmaAllocation Allocation{nullptr };
8888
89- operator bool () const
89+ operator bool () const
9090 {
9191 return (Handle != VK_NULL_HANDLE );
9292 }
You can’t perform that action at this time.
0 commit comments