Skip to content

Commit d151844

Browse files
committed
Initial bindings generation works and code based on Vortice.Vulkan bindings.
1 parent 880cab8 commit d151844

Some content is hidden

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

51 files changed

+15568
-2
lines changed

.editorconfig

+194
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
1+
# editorconfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Default settings:
7+
# A newline ending every file
8+
# Use 4 spaces as indentation
9+
[*]
10+
insert_final_newline = true
11+
indent_style = space
12+
indent_size = 4
13+
trim_trailing_whitespace = true
14+
15+
# Generated code
16+
[*{_AssemblyInfo.cs,.notsupported.cs,AsmOffsets.cs}]
17+
generated_code = true
18+
19+
[project.json]
20+
indent_size = 2
21+
22+
# C# files
23+
[*.cs]
24+
# New line preferences
25+
csharp_new_line_before_open_brace = all
26+
csharp_new_line_before_else = true
27+
csharp_new_line_before_catch = true
28+
csharp_new_line_before_finally = true
29+
csharp_new_line_before_members_in_object_initializers = true
30+
csharp_new_line_before_members_in_anonymous_types = true
31+
csharp_new_line_between_query_expression_clauses = true
32+
33+
# Indentation preferences
34+
csharp_indent_block_contents = true
35+
csharp_indent_braces = false
36+
csharp_indent_case_contents = true
37+
csharp_indent_case_contents_when_block = true
38+
csharp_indent_switch_labels = true
39+
csharp_indent_labels = one_less_than_current
40+
41+
# Modifier preferences
42+
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion
43+
44+
# avoid this. unless absolutely necessary
45+
dotnet_style_qualification_for_field = false:suggestion
46+
dotnet_style_qualification_for_property = false:suggestion
47+
dotnet_style_qualification_for_method = false:suggestion
48+
dotnet_style_qualification_for_event = false:suggestion
49+
50+
# Types: use keywords instead of BCL types, and permit var only when the type is clear
51+
csharp_style_var_for_built_in_types = false:suggestion
52+
csharp_style_var_when_type_is_apparent = false:none
53+
csharp_style_var_elsewhere = false:suggestion
54+
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
55+
dotnet_style_predefined_type_for_member_access = true:suggestion
56+
57+
# name all constant fields using PascalCase
58+
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
59+
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
60+
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
61+
dotnet_naming_symbols.constant_fields.applicable_kinds = field
62+
dotnet_naming_symbols.constant_fields.required_modifiers = const
63+
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
64+
65+
# static fields should have s_ prefix
66+
dotnet_naming_rule.static_fields_should_have_prefix.severity = suggestion
67+
dotnet_naming_rule.static_fields_should_have_prefix.symbols = static_fields
68+
dotnet_naming_rule.static_fields_should_have_prefix.style = static_prefix_style
69+
dotnet_naming_symbols.static_fields.applicable_kinds = field
70+
dotnet_naming_symbols.static_fields.required_modifiers = static
71+
dotnet_naming_symbols.static_fields.applicable_accessibilities = private, internal, private_protected
72+
dotnet_naming_style.static_prefix_style.required_prefix = s_
73+
dotnet_naming_style.static_prefix_style.capitalization = camel_case
74+
75+
# internal and private fields should be _camelCase
76+
dotnet_naming_rule.camel_case_for_private_internal_fields.severity = suggestion
77+
dotnet_naming_rule.camel_case_for_private_internal_fields.symbols = private_internal_fields
78+
dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_underscore_style
79+
dotnet_naming_symbols.private_internal_fields.applicable_kinds = field
80+
dotnet_naming_symbols.private_internal_fields.applicable_accessibilities = private, internal
81+
dotnet_naming_style.camel_case_underscore_style.required_prefix = _
82+
dotnet_naming_style.camel_case_underscore_style.capitalization = camel_case
83+
84+
# Code style defaults
85+
csharp_using_directive_placement = outside_namespace:error
86+
dotnet_sort_system_directives_first = true
87+
csharp_prefer_braces = true:silent
88+
csharp_preserve_single_line_blocks = true:none
89+
csharp_preserve_single_line_statements = false:none
90+
csharp_prefer_static_local_function = true:suggestion
91+
csharp_prefer_simple_using_statement = false:none
92+
csharp_style_prefer_switch_expression = true:suggestion
93+
dotnet_style_readonly_field = true:suggestion
94+
95+
# Expression-level preferences
96+
dotnet_style_object_initializer = true:suggestion
97+
dotnet_style_collection_initializer = true:suggestion
98+
dotnet_style_explicit_tuple_names = true:suggestion
99+
dotnet_style_coalesce_expression = true:suggestion
100+
dotnet_style_null_propagation = true:suggestion
101+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
102+
dotnet_style_prefer_inferred_tuple_names = true:suggestion
103+
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
104+
dotnet_style_prefer_auto_properties = true:suggestion
105+
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
106+
dotnet_style_prefer_conditional_expression_over_return = true:silent
107+
csharp_prefer_simple_default_expression = true:suggestion
108+
109+
# Expression-bodied members
110+
csharp_style_expression_bodied_methods = true:silent
111+
csharp_style_expression_bodied_constructors = true:silent
112+
csharp_style_expression_bodied_operators = true:silent
113+
csharp_style_expression_bodied_properties = true:silent
114+
csharp_style_expression_bodied_indexers = true:silent
115+
csharp_style_expression_bodied_accessors = true:silent
116+
csharp_style_expression_bodied_lambdas = true:silent
117+
csharp_style_expression_bodied_local_functions = true:silent
118+
119+
# Pattern matching
120+
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
121+
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
122+
csharp_style_inlined_variable_declaration = true:suggestion
123+
124+
# Null checking preferences
125+
csharp_style_throw_expression = true:suggestion
126+
csharp_style_conditional_delegate_call = true:suggestion
127+
128+
# Other features
129+
csharp_style_prefer_index_operator = false:none
130+
csharp_style_prefer_range_operator = false:none
131+
csharp_style_pattern_local_over_anonymous_function = false:none
132+
133+
# Space preferences
134+
csharp_space_after_cast = false
135+
csharp_space_after_colon_in_inheritance_clause = true
136+
csharp_space_after_comma = true
137+
csharp_space_after_dot = false
138+
csharp_space_after_keywords_in_control_flow_statements = true
139+
csharp_space_after_semicolon_in_for_statement = true
140+
csharp_space_around_binary_operators = before_and_after
141+
csharp_space_around_declaration_statements = do_not_ignore
142+
csharp_space_before_colon_in_inheritance_clause = true
143+
csharp_space_before_comma = false
144+
csharp_space_before_dot = false
145+
csharp_space_before_open_square_brackets = false
146+
csharp_space_before_semicolon_in_for_statement = false
147+
csharp_space_between_empty_square_brackets = false
148+
csharp_space_between_method_call_empty_parameter_list_parentheses = false
149+
csharp_space_between_method_call_name_and_opening_parenthesis = false
150+
csharp_space_between_method_call_parameter_list_parentheses = false
151+
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
152+
csharp_space_between_method_declaration_name_and_open_parenthesis = false
153+
csharp_space_between_method_declaration_parameter_list_parentheses = false
154+
csharp_space_between_parentheses = false
155+
csharp_space_between_square_brackets = false
156+
157+
csharp_style_namespace_declarations=file_scoped:error
158+
159+
# License header
160+
file_header_template = Copyright © Amer Koleci and Contributors.\nLicensed under the MIT License (MIT). See LICENSE in the repository root for more information.
161+
162+
# C++ Files
163+
[*.{cpp,h,in}]
164+
curly_bracket_next_line = true
165+
indent_brace_style = Allman
166+
167+
# Xml project files
168+
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,nativeproj,locproj}]
169+
indent_size = 2
170+
171+
[*.{csproj,vbproj,proj,nativeproj,locproj}]
172+
charset = utf-8
173+
174+
# Xml build files
175+
[*.builds]
176+
indent_size = 2
177+
178+
# Xml files
179+
[*.{xml,stylecop,resx,ruleset}]
180+
indent_size = 2
181+
182+
# Xml config files
183+
[*.{props,targets,config,nuspec}]
184+
indent_size = 2
185+
186+
# YAML config files
187+
[*.{yml,yaml}]
188+
indent_size = 2
189+
190+
# Shell scripts
191+
[*.sh]
192+
end_of_line = lf
193+
[*.{cmd,bat}]
194+
end_of_line = crlf

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: [amerkoleci]

.github/workflows/build.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
paths-ignore:
8+
- '*.md'
9+
pull_request:
10+
paths-ignore:
11+
- '*.md'
12+
jobs:
13+
build:
14+
runs-on: windows-latest
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
20+
- name: Install .NET 7.0
21+
uses: actions/setup-dotnet@v3
22+
with:
23+
dotnet-version: '7.0.x'
24+
25+
- name: Pack
26+
run: dotnet pack Alimer.Bindings.SDL.sln --configuration Release

0 commit comments

Comments
 (0)