Commit Graph

8379 Commits

Author SHA1 Message Date
Imbris
2c074ac52b Make shadow vert shaders always contain their content but ensure they are never used when shadow maps are disabled, remove uneeded shadow frag shader 2021-05-30 11:49:41 -04:00
Imbris
e8874b18c9 Properly account for negative sun_dir.z in pow use in sky shaders 2021-05-30 11:49:41 -04:00
Imbris
8d4bbed6c9 Add localization text for GPU timing checkbox 2021-05-30 11:49:41 -04:00
Imbris
df90dab3da Remove commented out sprite code, including the code for getting verts for sprites with a texture rather than a storage buffer 2021-05-30 11:49:41 -04:00
Imbris
f44937a9a6 Remove uneeded commented out gfx rendering code 2021-05-30 11:49:41 -04:00
Imbris
1a565ccc3c Update wgpu to latest version and improve error formating 2021-05-30 11:49:41 -04:00
Imbris
a7d0569bee Fix ProfSpan constructor being private 2021-05-30 11:49:41 -04:00
Imbris
ea6985e565 Fix all clippy warnings 2021-05-30 11:49:41 -04:00
Imbris
af1962f11c Remove unused waves texture 2021-05-30 11:49:41 -04:00
Imbris
ebe063442a Fix most of the cargo check warnings 2021-05-30 11:49:41 -04:00
Imbris
e4fc93035b Replace default wgpu error handler with one that includes the error in the panic message 2021-05-30 11:49:41 -04:00
Imbris
5b3dbca297 Remove unused shadow bind group from the cloud pipeline 2021-05-30 11:49:41 -04:00
Imbris
d032563780 Require WGPU_TRACE_DIR to be set manually instead of having a default value 2021-05-30 11:49:41 -04:00
Imbris
a93be322b5 Wait for ingame pipelines to build before entering char select, show pipeline rebuilding status text in the graphics settings tab 2021-05-30 11:49:41 -04:00
Imbris
65946b6f4b Fix bug in sprite pipeline creation & misc other pipeline creation fixes 2021-05-30 11:49:41 -04:00
Imbris
604ea8ff18 Make Drawer work with background pipeline creation 2021-05-30 11:49:41 -04:00
Imbris
71a561fc70 Move pipeline creation into the background, still needs Drawer modications and UI to display status 2021-05-30 11:49:41 -04:00
Imbris
5b00b28e04 Fix wrong intermediate target texture format 2021-05-30 11:49:41 -04:00
Imbris
de7f7881a0 CI tweaks, make windows build use posix mingw and copy necessary DLL files 2021-05-30 11:49:41 -04:00
Imbris
62db5e5a69 Comment out lod depth tweaks not designed for reverse depth, convert waves image to rgba before constructing a texture, misc fix after rebase 2021-05-30 11:49:41 -04:00
Synis
3f02e7b743 Fix missing include 2021-05-30 11:49:41 -04:00
Imbris
3e74f87ea3 Cloud and sprite shader fixes after rebase 2021-05-30 11:49:41 -04:00
Imbris
13d61eaf9f Clear textures that will be partially written to work around Dx12 bug on AMD 2021-05-30 11:49:41 -04:00
Imbris
8e87047d9e Update wgpu to get gfx-hal update that fixes the dx12 depth cube view construction issue 2021-05-30 11:49:41 -04:00
Imbris
7343286a3c Add env vars to set wgpu backend and wgpu api trace save dir (api trace still needs feature to be set ofc) 2021-05-30 11:49:41 -04:00
Imbris
f09f515db2 Fix dx12 shader issues 2021-05-30 11:49:41 -04:00
Imbris
97359042db Update wgpu 2021-05-30 11:49:41 -04:00
João Capucho
4c73433ecb Fix panic on zero sized scissor 2021-05-30 11:49:41 -04:00
João Capucho
4c51dd0147 Fix resizing using the wrong value 2021-05-30 11:49:41 -04:00
Imbris
cbddf50a41 Allow setting env var to only use the vulkan backend, deactivate profiling if the feature is not available 2021-05-30 11:49:41 -04:00
Imbris
c58e8e9eb8 Disable CI that does not need to run for builds 2021-05-30 11:49:41 -04:00
Imbris
d7b651451b Implement screenshots 2021-05-30 11:49:41 -04:00
Imbris
0ad51204ec Update wgpu-profiler, smol rebase fix 2021-05-30 11:49:41 -04:00
Imbris
66822246e3 Change docker tags to a wpu specific tag 2021-05-30 11:49:41 -04:00
Imbris
e31353df88 Display gpu timing info in the HUD when enabled 2021-05-30 11:49:41 -04:00
Imbris
2de13f3a87 Try out using storage buffer for sprite vertices 2021-05-30 11:49:41 -04:00
Imbris
bed1596985 Fix bugs with sprite rendering 2021-05-30 11:49:41 -04:00
Imbris
0933a87d84 Fix sprite vertex lookup, normalize sprite
normals in vert shader
2021-05-30 11:49:41 -04:00
Imbris
8c3ede3b39 Almost implement instance merging for sprites (validation error), rebase
fix
2021-05-30 11:49:41 -04:00
Imbris
49f03bd325 Start sprite refactor 2021-05-30 11:49:41 -04:00
João Capucho
ef96ce68e6 Fix winit returning wrong window size
It seems like waiting for wgpu to create a instance is enough to make
winit return the correct window size
2021-05-30 11:49:41 -04:00
João Capucho
e40702c083 Fix scissor panic
Removes the Scale::physical_resolution method as it could become
desynced from the renderer resolution causing the panic
2021-05-30 11:49:41 -04:00
João Capucho
3da110628a Update to the most recent wgpu 2021-05-30 11:49:40 -04:00
Imbris
f62718044d Fix texture sampling syntax 2021-05-30 11:49:40 -04:00
Imbris
a1d8265935 Switch to index rendering for most quad-like things 2021-05-30 11:49:40 -04:00
Imbris
0d7e96e849 Small fixes to gpu profiling 2021-05-30 11:49:40 -04:00
Imbris
9d076d3a89 Update to the latest wgpu git 2021-05-30 11:49:40 -04:00
Imbris
d2e2580df4 Implement toggleable gpu profiling that saves the timings from a recent frame with the screenshot key, rebase fixes 2021-05-30 11:49:40 -04:00
Imbris
5cdce0635d WIP gpu timer thing (not for squashing!) 2021-05-30 11:49:40 -04:00
Imbris
40d420e868 Update wgpu to fix segfault 2021-05-30 11:49:40 -04:00