1595091915472764928, 1603479655574642688
This commit is contained in:
1 parent
a0b2a3a8f7
commit
51ba6bd406
16 files changed
+649
No files matched your search
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@SebAaltonen Few more decades and will finally be back to where we never should have left from - writing HW registers."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/AlenL/status/1595196334453161984"
|
||||
author: "Alen Ladavac"
|
||||
handle: AlenL
|
||||
post_id: "1595196334453161984"
|
||||
date: 2022-11-22
|
||||
archived: 2026-08-26
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- SebAaltonen
|
||||
description: "@SebAaltonen Few more decades and will finally be back to where we never should have left from - writing HW registers."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1595091915472764928"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/AlenL/status/1595196334453161984
|
||||
- Author: Alen Ladavac (@AlenL)
|
||||
- Posted: 2022-11-22 23:23:38
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@AlenL** ^1595196334453161984
|
||||
|
||||
**@SebAaltonen**
|
||||
|
||||
Few more decades and will finally be back to where we never should have left from - writing HW registers. 👍
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/SebAaltonen/2022-11-22-ive-long-time-talked-about-killing-the-graphics]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@SebAaltonen \"killing the graphics api\" - what does that mean? how do you \"kill\" an api?"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/PLT_cheater/status/1595094244204904448"
|
||||
author: "Multiple Systems"
|
||||
handle: PLT_cheater
|
||||
post_id: "1595094244204904448"
|
||||
date: 2022-11-22
|
||||
archived: 2026-08-26
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- SebAaltonen
|
||||
description: "@SebAaltonen \"killing the graphics api\" - what does that mean? how do you \"kill\" an api?"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1595091915472764928"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/PLT_cheater/status/1595094244204904448
|
||||
- Author: Multiple Systems (@PLT_cheater)
|
||||
- Posted: 2022-11-22 16:37:57
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@PLT_cheater** ^1595094244204904448
|
||||
|
||||
**@SebAaltonen**
|
||||
|
||||
"killing the graphics api" - what does that mean? how do you "kill" an api?
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/SebAaltonen/2022-11-22-ive-long-time-talked-about-killing-the-graphics]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "Hopefully in the future the existing Vulkan descriptor APIs can be removed."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/SebAaltonen/status/1595092429878837253"
|
||||
author: "Sebastian Aaltonen"
|
||||
handle: SebAaltonen
|
||||
post_id: "1595092429878837253"
|
||||
date: 2022-11-22
|
||||
archived: 2026-08-26
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- SebAaltonen
|
||||
description: "Hopefully in the future the existing Vulkan descriptor APIs can be removed."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1595091915472764928"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/SebAaltonen/status/1595092429878837253
|
||||
- Author: Sebastian Aaltonen (@SebAaltonen)
|
||||
- Posted: 2022-11-22 16:30:45
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@SebAaltonen** ^1595092429878837253
|
||||
|
||||
Hopefully in the future the existing Vulkan descriptor APIs can be removed. This is so much simpler. Much less API surface and simpler bookkeeping.
|
||||
|
||||
I am really pleased about this API. Best thing that has happened in a long time :)
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/SebAaltonen/2022-11-22-ive-long-time-talked-about-killing-the-graphics]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@SebAaltonen Hooley Dooley"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/danoli3/status/1595178104607363075"
|
||||
author: "Danoli3"
|
||||
handle: danoli3
|
||||
post_id: "1595178104607363075"
|
||||
date: 2022-11-22
|
||||
archived: 2026-08-26
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- SebAaltonen
|
||||
description: "@SebAaltonen Hooley Dooley"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1595091915472764928"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/danoli3/status/1595178104607363075
|
||||
- Author: Danoli3 (@danoli3)
|
||||
- Posted: 2022-11-22 22:11:11
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@danoli3** ^1595178104607363075
|
||||
|
||||
**@SebAaltonen**
|
||||
|
||||
Hooley Dooley
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/SebAaltonen/2022-11-22-ive-long-time-talked-about-killing-the-graphics]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@SebAaltonen Yes! Please!!"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/vingt_2/status/1595180307392577536"
|
||||
author: "Vingt-2"
|
||||
handle: vingt_2
|
||||
post_id: "1595180307392577536"
|
||||
date: 2022-11-22
|
||||
archived: 2026-08-26
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- SebAaltonen
|
||||
description: "@SebAaltonen Yes! Please!!"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1595091915472764928"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/vingt_2/status/1595180307392577536
|
||||
- Author: Vingt-2 (@vingt_2)
|
||||
- Posted: 2022-11-22 22:19:56
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@vingt_2** ^1595180307392577536
|
||||
|
||||
**@SebAaltonen**
|
||||
|
||||
Yes! Please!!
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/SebAaltonen/2022-11-22-ive-long-time-talked-about-killing-the-graphics]]
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
---
|
||||
title: "@SebAaltonen One of the biggest roadblocks when I was trying to learn Vulkan was the descriptor API."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/JoaoBapt/status/1595315606349307904"
|
||||
author: "João Baptista 🇧🇷"
|
||||
handle: JoaoBapt
|
||||
post_id: "1595315606349307904"
|
||||
date: 2022-11-23
|
||||
archived: 2026-08-26
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- SebAaltonen
|
||||
description: "@SebAaltonen One of the biggest roadblocks when I was trying to learn Vulkan was the descriptor API."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1595091915472764928"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/JoaoBapt/status/1595315606349307904
|
||||
- Author: João Baptista 🇧🇷 (@JoaoBapt)
|
||||
- Posted: 2022-11-23 07:17:34
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@JoaoBapt** ^1595315606349307904
|
||||
|
||||
**@SebAaltonen**
|
||||
|
||||
One of the biggest roadblocks when I was trying to learn Vulkan was the descriptor API. I never fully understood them, and tbh the way Direct3D and Metal do is way cleaner and simpler (the argument buffers not that much, but you get it).
|
||||
|
||||
**2/** **@SebAaltonen** ^1595316396346540039
|
||||
|
||||
**@JoaoBapt**
|
||||
|
||||
Descriptor sets and argument buffers simply abstract a linear chunk of memory (pointer + size) containing descriptors. But the abstractions make this look super complicated. The idea is that you can change the pointer quickly at runtime (to change materials bindings, etc).
|
||||
|
||||
**3/** **@JoaoBapt** ^1595317094375215104
|
||||
|
||||
**@SebAaltonen**
|
||||
|
||||
Yeah, that part I got, you could even set the root constants and descriptors on D3D or just *plain write to them with the CPU* on the PS5. The argument buffer API is nice as well, though having to ‘useResource’ every one of them seems to me as defeating the point entirely.
|
||||
|
||||
**4/** **@SebAaltonen** ^1595318728840855553
|
||||
|
||||
**@JoaoBapt**
|
||||
|
||||
You want to use heaps instead of calling useResource separately for each argument buffer.
|
||||
|
||||
https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3043402-useheap?language=objc
|
||||
|
||||
**5/** **@JoaoBapt** ^1595355410210357248
|
||||
|
||||
**@SebAaltonen**
|
||||
|
||||
Yeah, I forgot that they existed 😅 it’s been being a nightmare to learn all three APIs, especially because I skipped D3D11 (learned OpenGL instead), so it’s been quite a journey.
|
||||
|
||||
**6/** **@SebAaltonen** ^1595359995012517890
|
||||
|
||||
**@JoaoBapt**
|
||||
|
||||
Yeah. Metal heaps is more similar to Vulkan. Have sub-allocate things manually. Going to be reusing a lot of my memory management code from the Vulkan backend in the Metal backend.
|
||||
|
||||
**7/** **@JoaoBapt** ^1595360142727548928
|
||||
|
||||
**@SebAaltonen**
|
||||
|
||||
Makes sense. Though in this case you probably can try to repurpose VMA for that?
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/SebAaltonen/2022-11-22-ive-long-time-talked-about-killing-the-graphics]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@SebAaltonen @SheriefFYI When I started with modern graphics APIs (i.e., Vulkan) I felt like I was not understanding something because of how far it was from the idea of 'close to the metal' that intro readings stated."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/RandomPedroJ/status/1595378159540748294"
|
||||
author: "Pedro J. Estébanez — Pedrocorp"
|
||||
handle: RandomPedroJ
|
||||
post_id: "1595378159540748294"
|
||||
date: 2022-11-23
|
||||
archived: 2026-08-26
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- SebAaltonen
|
||||
description: "@SebAaltonen @SheriefFYI When I started with modern graphics APIs (i.e., Vulkan) I felt like I was not understanding something because of how far it was from the idea of 'close to the metal' that intro readings stated."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1595091915472764928"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/RandomPedroJ/status/1595378159540748294
|
||||
- Author: Pedro J. Estébanez — Pedrocorp (@RandomPedroJ)
|
||||
- Posted: 2022-11-23 11:26:08
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@RandomPedroJ** ^1595378159540748294
|
||||
|
||||
**@SebAaltonen** **@SheriefFYI**
|
||||
|
||||
When I started with modern graphics APIs (i.e., Vulkan) I felt like I was not understanding something because of how far it was from the idea of 'close to the metal' that intro readings stated. Descriptor sets/pools were a major point of confusion.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/SebAaltonen/2022-11-22-ive-long-time-talked-about-killing-the-graphics]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@SebAaltonen Another Vulkan W."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/SvetlinTotev/status/1595435479574380545"
|
||||
author: "Svetlin Totev"
|
||||
handle: SvetlinTotev
|
||||
post_id: "1595435479574380545"
|
||||
date: 2022-11-23
|
||||
archived: 2026-08-26
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- SebAaltonen
|
||||
description: "@SebAaltonen Another Vulkan W."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1595091915472764928"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/SvetlinTotev/status/1595435479574380545
|
||||
- Author: Svetlin Totev (@SvetlinTotev)
|
||||
- Posted: 2022-11-23 15:13:54
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@SvetlinTotev** ^1595435479574380545
|
||||
|
||||
**@SebAaltonen**
|
||||
|
||||
Another Vulkan W.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/SebAaltonen/2022-11-22-ive-long-time-talked-about-killing-the-graphics]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@SebAaltonen Finally, was waiting on this one."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/ThisIsJBernard/status/1595255142366216192"
|
||||
author: "J Bernard"
|
||||
handle: ThisIsJBernard
|
||||
post_id: "1595255142366216192"
|
||||
date: 2022-11-23
|
||||
archived: 2026-08-26
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- SebAaltonen
|
||||
description: "@SebAaltonen Finally, was waiting on this one."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1595091915472764928"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/ThisIsJBernard/status/1595255142366216192
|
||||
- Author: J Bernard (@ThisIsJBernard)
|
||||
- Posted: 2022-11-23 03:17:19
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@ThisIsJBernard** ^1595255142366216192
|
||||
|
||||
**@SebAaltonen**
|
||||
|
||||
Finally, was waiting on this one. Now just want offsetof support in dxc to ease unpacking data from byte buffers.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/SebAaltonen/2022-11-22-ive-long-time-talked-about-killing-the-graphics]]
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
---
|
||||
title: "@SebAaltonen AFAIK that is only fully true on AMD GPUs, everyone else has to go through some pain to implement this extension."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/Venemo/status/1595310115401474048"
|
||||
author: "Timur Kristóf"
|
||||
handle: Venemo
|
||||
post_id: "1595310115401474048"
|
||||
date: 2022-11-23
|
||||
archived: 2026-08-26
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- SebAaltonen
|
||||
description: "@SebAaltonen AFAIK that is only fully true on AMD GPUs, everyone else has to go through some pain to implement this extension."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1595091915472764928"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/Venemo/status/1595310115401474048
|
||||
- Author: Timur Kristóf (@Venemo)
|
||||
- Posted: 2022-11-23 06:55:45
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@Venemo** ^1595310115401474048
|
||||
|
||||
**@SebAaltonen**
|
||||
|
||||
AFAIK that is only fully true on AMD GPUs, everyone else has to go through some pain to implement this extension.
|
||||
|
||||
**2/** **@SebAaltonen** ^1595312553776893952
|
||||
|
||||
**@Venemo**
|
||||
|
||||
Nvidia has also similar scalar instructions and can store descriptors in scalar registers. Their CUDA docs list the new instructions that were added in Turing. Latest 3 generations of Nvidia should be fine.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/SebAaltonen/2022-11-22-ive-long-time-talked-about-killing-the-graphics]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@SebAaltonen This extension still lacks the ability to create descriptors in shaders from buffer memory."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/zhaijialong/status/1595246365730570240"
|
||||
author: "zhaijialong"
|
||||
handle: zhaijialong
|
||||
post_id: "1595246365730570240"
|
||||
date: 2022-11-23
|
||||
archived: 2026-08-26
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- SebAaltonen
|
||||
description: "@SebAaltonen This extension still lacks the ability to create descriptors in shaders from buffer memory."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1595091915472764928"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/zhaijialong/status/1595246365730570240
|
||||
- Author: zhaijialong (@zhaijialong)
|
||||
- Posted: 2022-11-23 02:42:26
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@zhaijialong** ^1595246365730570240
|
||||
|
||||
**@SebAaltonen**
|
||||
|
||||
This extension still lacks the ability to create descriptors in shaders from buffer memory. We need that :)
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/SebAaltonen/2022-11-22-ive-long-time-talked-about-killing-the-graphics]]
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
---
|
||||
title: "I've long time talked about killing the graphics API."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/SebAaltonen/status/1595091915472764928"
|
||||
author: "Sebastian Aaltonen"
|
||||
handle: SebAaltonen
|
||||
post_id: "1595091915472764928"
|
||||
date: 2022-11-22
|
||||
archived: 2026-08-26
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- SebAaltonen
|
||||
description: "I've long time talked about killing the graphics API."
|
||||
in_reply_to: ""
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/SebAaltonen/status/1595091915472764928
|
||||
- Author: Sebastian Aaltonen (@SebAaltonen)
|
||||
- Posted: 2022-11-22 16:28:42
|
||||
|
||||
## Thread
|
||||
|
||||
**1/** **@SebAaltonen** ^1595091915472764928
|
||||
|
||||
I've long time talked about killing the graphics API. First step: Kill descriptor APIs. Descriptors are just memory, you can put them in buffers, load them in shader and copy/update them in GPU timeline.
|
||||
|
||||
This new Khronos extension does exactly that:
|
||||
https://www.khronos.org/blog/vk-ext-descriptor-buffer
|
||||
|
||||
Branches: [[archive/threads/SebAaltonen/2022-11-22-ive-long-time-talked-about-killing-the-graphics/2022-11-22-SebAaltonen-hopefully-in-the-future-the-existing-vulkan]], [[archive/threads/SebAaltonen/2022-11-22-ive-long-time-talked-about-killing-the-graphics/2022-11-22-PLT_cheater-killing-the-graphics-api-what-does-that-mean-how]], [[archive/threads/SebAaltonen/2022-11-22-ive-long-time-talked-about-killing-the-graphics/2022-11-22-danoli3-hooley-dooley]], [[archive/threads/SebAaltonen/2022-11-22-ive-long-time-talked-about-killing-the-graphics/2022-11-22-vingt_2-yes-please]], [[archive/threads/SebAaltonen/2022-11-22-ive-long-time-talked-about-killing-the-graphics/2022-11-22-AlenL-few-more-decades-and-will-finally-be-back-to]], [[archive/threads/SebAaltonen/2022-11-22-ive-long-time-talked-about-killing-the-graphics/2022-11-23-zhaijialong-this-extension-still-lacks-the-ability-to-create]], [[archive/threads/SebAaltonen/2022-11-22-ive-long-time-talked-about-killing-the-graphics/2022-11-23-ThisIsJBernard-finally-was-waiting-on-this-one-now-just-want]], [[archive/threads/SebAaltonen/2022-11-22-ive-long-time-talked-about-killing-the-graphics/2022-11-23-Venemo-afaik-that-is-only-fully-true-on-amd-gpus]], [[archive/threads/SebAaltonen/2022-11-22-ive-long-time-talked-about-killing-the-graphics/2022-11-23-JoaoBapt-one-of-the-biggest-roadblocks-when-i-was-trying]], [[archive/threads/SebAaltonen/2022-11-22-ive-long-time-talked-about-killing-the-graphics/2022-11-23-RandomPedroJ-when-i-started-with-modern-graphics-apis-i-e]], [[archive/threads/SebAaltonen/2022-11-22-ive-long-time-talked-about-killing-the-graphics/2022-11-23-SvetlinTotev-another-vulkan-w]]
|
||||
|
||||
**2/** **@NOTimothyLottes** ^1595158732706811905
|
||||
|
||||
**@SebAaltonen**
|
||||
|
||||
Yes, closer to what many of us wanted from VK from the beginning. Article missed this: DYNAMIC on AMD at least was good because it can be SGPR preload (removes an indirection at runtime).
|
||||
|
||||
**3/** **@NOTimothyLottes** ^1595159948669104128
|
||||
|
||||
**@SebAaltonen**
|
||||
|
||||
Unfortunatly though I'd expect some are going to abuse the API: use max descriptor size for everything all in one giant array. Will kill cache efficiency. Not sure if this new API supports the alternatives to fix that.
|
||||
|
||||
**4/** **@rianflo** ^1595161710905929728
|
||||
|
||||
**@NOTimothyLottes** **@SebAaltonen**
|
||||
|
||||
I am using VK_KHR_push_descriptor for now.
|
||||
@@ -9,6 +9,7 @@ tags:
|
||||
- SebAaltonen
|
||||
---
|
||||
|
||||
- [[archive/threads/SebAaltonen/2022-11-22-ive-long-time-talked-about-killing-the-graphics]]
|
||||
- [[archive/threads/SebAaltonen/2024-04-04-this-is-how-slow-code-feels-like]]
|
||||
- [[archive/threads/SebAaltonen/2024-05-03-why-should-one-be-able-to-code-without]]
|
||||
- [[archive/threads/SebAaltonen/2024-12-18-fixed-all-our-vulkan-bugs]]
|
||||
|
||||
Reference in new issue
Block a user