annotate semiconginev2.nim @ 1252:01e9f41d35b1

add:support for push constants
author sam <sam@basx.dev>
date Fri, 26 Jul 2024 23:04:01 +0700
parents d594b1d07d49
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1191
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
1 import std/algorithm
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
2 import std/dynlib
1225
27cd1c21290e did: refactor resources
sam <sam@basx.dev>
parents: 1224
diff changeset
3 import std/endians
1191
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
4 import std/enumerate
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
5 import std/hashes
1225
27cd1c21290e did: refactor resources
sam <sam@basx.dev>
parents: 1224
diff changeset
6 import std/json
1224
a3fa15c25026 did: cleanup, add audio, change platform-dependent structure
sam <sam@basx.dev>
parents: 1223
diff changeset
7 import std/locks
1191
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
8 import std/logging
1199
ba1af13233ee add: working main-renderloop
sam <sam@basx.dev>
parents: 1193
diff changeset
9 import std/marshal
1191
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
10 import std/math
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
11 import std/macros
1214
04e446a7eb2b add: multipass renderer, finish tets for now
sam <sam@basx.dev>
parents: 1201
diff changeset
12 import std/monotimes
1191
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
13 import std/os
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
14 import std/options
1225
27cd1c21290e did: refactor resources
sam <sam@basx.dev>
parents: 1224
diff changeset
15 import std/parsecfg
1226
c8e3037aca66 add: contrib stuff
sam <sam@basx.dev>
parents: 1225
diff changeset
16 import std/parseutils
1191
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
17 import std/paths
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
18 import std/random
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
19 import std/sequtils
1225
27cd1c21290e did: refactor resources
sam <sam@basx.dev>
parents: 1224
diff changeset
20 import std/sets
1191
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
21 import std/strformat
1225
27cd1c21290e did: refactor resources
sam <sam@basx.dev>
parents: 1224
diff changeset
22 import std/streams
1191
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
23 import std/strutils
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
24 import std/tables
1214
04e446a7eb2b add: multipass renderer, finish tets for now
sam <sam@basx.dev>
parents: 1201
diff changeset
25 import std/times
1201
d4a206b5e5b0 add: rest of the cleanup stuff
sam <sam@basx.dev>
parents: 1199
diff changeset
26 import std/typetraits
1225
27cd1c21290e did: refactor resources
sam <sam@basx.dev>
parents: 1224
diff changeset
27 import std/unicode
1191
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
28
1226
c8e3037aca66 add: contrib stuff
sam <sam@basx.dev>
parents: 1225
diff changeset
29
1223
55896320c8bf fix: references to new package not updated
sam <sam@basx.dev>
parents: 1217
diff changeset
30 include ./semiconginev2/rendering/vulkan/api
55896320c8bf fix: references to new package not updated
sam <sam@basx.dev>
parents: 1217
diff changeset
31 include ./semiconginev2/core
1199
ba1af13233ee add: working main-renderloop
sam <sam@basx.dev>
parents: 1193
diff changeset
32
1226
c8e3037aca66 add: contrib stuff
sam <sam@basx.dev>
parents: 1225
diff changeset
33 setLogFilter(ENGINE_LOGLEVEL)
c8e3037aca66 add: contrib stuff
sam <sam@basx.dev>
parents: 1225
diff changeset
34
1225
27cd1c21290e did: refactor resources
sam <sam@basx.dev>
parents: 1224
diff changeset
35 include ./semiconginev2/resources
1224
a3fa15c25026 did: cleanup, add audio, change platform-dependent structure
sam <sam@basx.dev>
parents: 1223
diff changeset
36
1242
e8b3dc80e48e add: PNG loading and tests for it
sam <sam@basx.dev>
parents: 1234
diff changeset
37 include ./semiconginev2/image
e8b3dc80e48e add: PNG loading and tests for it
sam <sam@basx.dev>
parents: 1234
diff changeset
38
1223
55896320c8bf fix: references to new package not updated
sam <sam@basx.dev>
parents: 1217
diff changeset
39 include ./semiconginev2/events
55896320c8bf fix: references to new package not updated
sam <sam@basx.dev>
parents: 1217
diff changeset
40 include ./semiconginev2/rendering
1199
ba1af13233ee add: working main-renderloop
sam <sam@basx.dev>
parents: 1193
diff changeset
41
1223
55896320c8bf fix: references to new package not updated
sam <sam@basx.dev>
parents: 1217
diff changeset
42 include ./semiconginev2/storage
55896320c8bf fix: references to new package not updated
sam <sam@basx.dev>
parents: 1217
diff changeset
43 include ./semiconginev2/input
1224
a3fa15c25026 did: cleanup, add audio, change platform-dependent structure
sam <sam@basx.dev>
parents: 1223
diff changeset
44
a3fa15c25026 did: cleanup, add audio, change platform-dependent structure
sam <sam@basx.dev>
parents: 1223
diff changeset
45 include ./semiconginev2/audio
a3fa15c25026 did: cleanup, add audio, change platform-dependent structure
sam <sam@basx.dev>
parents: 1223
diff changeset
46
1234
841e12f33c47 add: text & font rendering, not tested yet
sam <sam@basx.dev>
parents: 1226
diff changeset
47 # texture packing is required for font atlas
841e12f33c47 add: text & font rendering, not tested yet
sam <sam@basx.dev>
parents: 1226
diff changeset
48 include ./semiconginev2/contrib/algorithms/texture_packing
841e12f33c47 add: text & font rendering, not tested yet
sam <sam@basx.dev>
parents: 1226
diff changeset
49 include ./semiconginev2/text
841e12f33c47 add: text & font rendering, not tested yet
sam <sam@basx.dev>
parents: 1226
diff changeset
50
1245
d594b1d07d49 add: initial changes for glTF loader
sam <sam@basx.dev>
parents: 1244
diff changeset
51 include ./semiconginev2/gltf
d594b1d07d49 add: initial changes for glTF loader
sam <sam@basx.dev>
parents: 1244
diff changeset
52
1244
3ef5764504ad fix: bad define-name
sam <sam@basx.dev>
parents: 1242
diff changeset
53 when not defined(WITHOUT_CONTRIB):
1226
c8e3037aca66 add: contrib stuff
sam <sam@basx.dev>
parents: 1225
diff changeset
54 include ./semiconginev2/contrib/steam
c8e3037aca66 add: contrib stuff
sam <sam@basx.dev>
parents: 1225
diff changeset
55 include ./semiconginev2/contrib/settings
c8e3037aca66 add: contrib stuff
sam <sam@basx.dev>
parents: 1225
diff changeset
56 include ./semiconginev2/contrib/algorithms/collision
c8e3037aca66 add: contrib stuff
sam <sam@basx.dev>
parents: 1225
diff changeset
57 include ./semiconginev2/contrib/algorithms/noise
1252
01e9f41d35b1 add:support for push constants
sam <sam@basx.dev>
parents: 1245
diff changeset
58
01e9f41d35b1 add:support for push constants
sam <sam@basx.dev>
parents: 1245
diff changeset
59 if not defined(release):
01e9f41d35b1 add:support for push constants
sam <sam@basx.dev>
parents: 1245
diff changeset
60 setLogFilter(lvlAll)
01e9f41d35b1 add:support for push constants
sam <sam@basx.dev>
parents: 1245
diff changeset
61 else:
01e9f41d35b1 add:support for push constants
sam <sam@basx.dev>
parents: 1245
diff changeset
62 setLogFilter(lvlWarn)