runtime pipeline

This commit is contained in:
Jorijn van der Graaf 2026-02-22 00:46:38 +01:00
commit 415e523a45
20 changed files with 480 additions and 45 deletions

View file

@ -38,12 +38,10 @@ export namespace Crafter {
class RenderingElement3DVulkan {
public:
Mesh* mesh;
VkAccelerationStructureInstanceKHR instance;
static std::vector<RenderingElement3DVulkan> elements;
static std::vector<RenderingElement3DVulkan*> elements;
inline static VulkanBuffer<char, false, true, false> scratchBuffer;
inline static std::vector<TlasWithBuffer> tlases;
RenderingElement3DVulkan(Mesh& mesh, std::uint32_t customIndex, std::uint32_t mask, std::uint32_t shaderOffset);
static void BuildTLAS(VkCommandBuffer cmd, std::uint32_t index);
};
}