Update rhi skill

This commit is contained in:
2026-07-05 19:49:42 +01:00
parent 5bf0ba40ca
commit 0d1c5b84f2
+4 -3
View File
@@ -12,7 +12,7 @@ Captures the RHI conventions for Prism: how backends are dispatched, how descrip
## When to use me
Use this when working on any file in `scratchpad/rhi/` or `src/prism/rhi/`, or when creating a new backend (Vulkan, D3D12, Metal).
Use this when working on any file in `src/prism/rhi/`, or when creating a new backend (Vulkan, D3D12, Metal).
## Conventions
@@ -60,12 +60,13 @@ PrRhiDevice *prRhiCreateDevice(PrRhiPhysicalDevice *pdev, PrRhiSurface *surface,
### File layout
```
scratchpad/rhi/
src/prism/rhi/
├── pr_rhi.h ← umbrella header (API declarations + backend dispatch)
├── pr_rhi_types.h ← shared types (enums, element types, array aliases, desc structs, opaque handles)
├── vulkan/
│ ├── pr_rhi_vk.h ← Vulkan backend header (opaque struct defs + Vk-suffixed decls)
── pr_rhi_vk_aliases.h ← #define alias mapping
── pr_rhi_vk_aliases.h ← #define alias mapping
│ └── profiles/ ← generated Vulkan Profiles library
├── d3d12/
│ └── …
└── metal/