Vulkan content, uploads and descriptors #32

Open
UnflavoredMeson/Primal_Plus_Plus
opened 2026-11-24 20:15:57 +00:00 by UnflavoredMeson · 0 comments
Owner

Why

Meshes, textures and materials need GPU resources, and shaders need to reach them the way D3D12's descriptor heap does.

Decided

  • Push descriptors stand in for D3D12 root descriptors; a mutable-descriptor resource heap stands in for D3D12's descriptor heap (bindless, set 1 binding 2).
  • Uploads through a staging ring, waited on the graphics queue for now (async uploads: S12).
  • Content APIs match D3D12's, so the shared modules call either.

Read first

  • LinuxVulkanPort, phases 6d-6e.
  • Engine/Graphics/Direct3D12/D3D12Content.cpp, D3D12Upload.cpp, D3D12Resources.cpp on master.

Steps

  • 1. Write uploads and buffers; a GraphicsTests case uploads and reads back a buffer.
  • 2. Write textures and the descriptor heap; a test samples a texture.
  • 3. Write meshes and materials from S4-03's packs.

Done when

  • The GraphicsTests cases pass on Vulkan with validation clean; 0 warnings; tidy 0.

Claude can help with

  • VK_EXT_mutable_descriptor_type details and driver support.

Learn

  • How bindless descriptors change what a draw call needs to bind.
## Why Meshes, textures and materials need GPU resources, and shaders need to reach them the way D3D12's descriptor heap does. ## Decided - Push descriptors stand in for D3D12 root descriptors; a mutable-descriptor resource heap stands in for D3D12's descriptor heap (bindless, set 1 binding 2). - Uploads through a staging ring, waited on the graphics queue for now (async uploads: S12). - Content APIs match D3D12's, so the shared modules call either. ## Read first - [LinuxVulkanPort](https://forgejo.unflavoredmeson.com/UnflavoredMeson/Primal_Plus_Plus/wiki/LinuxVulkanPort), phases 6d-6e. - `Engine/Graphics/Direct3D12/D3D12Content.cpp`, `D3D12Upload.cpp`, `D3D12Resources.cpp` on `master`. ## Steps - [ ] 1. Write uploads and buffers; a GraphicsTests case uploads and reads back a buffer. - [ ] 2. Write textures and the descriptor heap; a test samples a texture. - [ ] 3. Write meshes and materials from S4-03's packs. ## Done when - [ ] The GraphicsTests cases pass on Vulkan with validation clean; 0 warnings; tidy 0. ## Claude can help with - `VK_EXT_mutable_descriptor_type` details and driver support. ## Learn - How bindless descriptors change what a draw call needs to bind.
Sign in to join this conversation.
No assignees
No project
No milestone
Blocks Depends on
Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
UnflavoredMeson/Primal_Plus_Plus#32
No description provided.