[perf][LOW] No VkPipelineCache passed to vkCreateComputePipelines #69
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Catcrafts/Crafter.Graphics#69
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Subsystem: ComputeShader / RT pipeline
Location:
implementations/Crafter.Graphics-ComputeShader.cpp:84-86(mirroredinterfaces/Crafter.Graphics-PipelineRTVulkan.cppm:85)Impact: Low (cold-start) · Effort: Small · Not hot path (one-time compile)
Problem
No
VkPipelineCachepassed tovkCreateComputePipelines. One-time pipeline compilation (4 UI shaders + user shaders), not frame cost.Proposed fix
One
inline static VkPipelineCacheinDevice, loaded from disk and serialized at shutdown; validate againstpipelineCacheUUIDbefore reuse.Note
The original title's
vkCreateShaderModulemention is inaccurate — that API takes no cache argument.