gfx: swapchain refactor (#3751)

* gfx: swapchain

* acquire/release/surface on swapchain

* fix swapchain texture creation

* acquire/present back on device

* formats are swapchain-specific

* swapchain: vk works

* enable device agent

* format fix

* update gfxdef

* fix enum decl

* pipeline adapt

* minor

* vk: compress attr locations directly in SPIR-V

* gles3 adjust

* InputAssembler owns an DrawInfo

* gles2 adapt

* texture keep track of its hash

* device cached states

* format

* glslang finalize

* buffer view adapt

* fg: subpass support

* minor

* 3.4 adapt

* profiler adapt

* buffer update frequency detection

* minor

* base commit

* swapchain works on metal

* spirv

* mtltexture issue

* remote test code

* depthtexture

* revert ifdef USE_METAL

* ios swapchain header

* fix some triple buffer issues

* resize accept surface transform

Co-authored-by: Zeqiang Li <Zeqiang-li@outlook.com>
This commit is contained in:
Yun Hsiao Wu
2021-08-31 19:40:32 +08:00
committed by GitHub
parent 02710af9d8
commit da2f03ff73
281 changed files with 9731 additions and 10953 deletions
+3 -3
View File
@@ -55,13 +55,13 @@ There are two important notes here:
* The issues reported here all come from `clangd` the language server, which only supports a subset of `clang-tidy` rules.
* It appears to be no 'fix-all' option in the editor.
This is where the `Command Runner` extension comes in and saves the day: we can assign a suitable key binding to run any CLI commands, e.g. invoke `clang-tidy` itself and fix all the issues in the current file!
This is where the `Command Runner` extension comes in and saves the day: we can assign a suitable key binding to run any CLI commands, e.g. invoke the `clang-tidy` proper and fix all the issues in the current file!
* Open the VSCode settings (JSON) and add the following property:
![](imgs/vscode-settings.png)
```json
```js
"command-runner.commands": {
"tidy": "clang-tidy -fix '${file}'"
}
@@ -71,7 +71,7 @@ This is where the `Command Runner` extension comes in and saves the day: we can
![](imgs/keyboard-shortcut.png)
```json
```js
{
"key": "shift+alt+c", // set this to any key binding that works best for you
"command": "command-runner.run",