Skip to content

Commit de89670

Browse files
authored
[3.0] Refactor SilkTouch to Use Roslyn Workspaces + more (#2288)
* Initial group codegen * Fix some trimming oddities * Fix HintTargetPGI and others similarly situated * Base typing and namespacing * Cast enum members, fix stray semicolons, Silk.NET.OpenGL builds again * Group and bool transformations * Fix erroneous cast order * Add Delete(singular) overloads (ArrayParameterOverloader) * Add SAL object model & Khronos length metadata parsing * ArrayParameterTransformer w/ tests * Integrate ArrayParameterTransformer * Support SupportedApiProfileAttribute generation with metadata * PrettifyNames conflict resolution now actually works * Fix casting transformation ambiguity bugs * Fix metadata retrieval for reserved identifiers * Fix unit tests * Fixup for all caps names * Fix naive trimming bug * More self-review comments * SDL bindings * Fix naming regression * Prettify & extract the nested _e__{Union,Struct,FixedBuffer} structs * Function pointer generation * Add a second pass to name delegates based on usage! * Fixes from self-review * Rejig the repo structure * Save progress, as I am deleting the progress * Create a Roslyn compilation & workspace * Bugfixes, generation runs with renaming but is slow and outputs wrong * Some more bugfixes * Fix mods not saving outputs, unnecessary subdirs, filenames, and other renamer issues * Add IResponseFileMod, fix EntryPoint not in DllImport, and other fixes & improvements * Delete some stray files * Minor nits * Initial commit of the SymbolFinder rename experiment * This is the new renamer * Fix ctors and dtors, stop using `using static`s * Regenerate bindings * Use public Roslyn APIs and parallelise
1 parent 424f0ed commit de89670

File tree

668 files changed

+31048
-31784
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

668 files changed

+31048
-31784
lines changed

.silktouch/1ce66f3f47b7ebfb.stout

-1.32 MB
Binary file not shown.

.silktouch/c8c046b328b09d23.stout

226 KB
Binary file not shown.

.silktouch/f634eee0bf239a81.stout

150 KB
Binary file not shown.

eng/benchmarks/Silk.NET.Maths.Benchmarks/Silk.NET.Maths.Benchmarks.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</ItemGroup>
1212

1313
<ItemGroup>
14-
<ProjectReference Include="..\..\..\sources\Maths\Silk.NET.Maths.csproj" />
14+
<ProjectReference Include="..\..\..\sources\Maths\Maths\Silk.NET.Maths.csproj" />
1515
</ItemGroup>
1616

1717
</Project>

eng/silktouch/common.rsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ multi-file
2727
trimmable-vtbls
2828
preview-codegen
2929
generate-file-scoped-namespaces
30+
exclude-using-statics-for-enums

eng/silktouch/opengl/glcore/header.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

eng/silktouch/opengl/gles1/header.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

eng/silktouch/opengl/gles2/header.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

eng/silktouch/opengl/settings.rsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
--define-macro
33
TODO_DEFINE_MACROS=HERE
44
--headerFile
5-
header.txt
5+
../header.txt
66
--include-directory
77
../../../submodules/opengl/api
88
../../../submodules/egl/api

0 commit comments

Comments
 (0)