fix shader disassembly

This commit is contained in:
matthew 2025-08-09 16:41:07 +10:00
parent f4a8cef602
commit eafd47b04e
2 changed files with 6 additions and 1 deletions

View File

@ -126,6 +126,9 @@ InitGame(PlatformWindow* window)
g.ui_pipeline = CreateGraphicsPipeline(&g.rd, &ui_info);
PrintShaderDisassembly(&g.rd, g.ui_pipeline, VK_SHADER_STAGE_VERTEX_BIT);
PrintShaderDisassembly(&g.rd, g.ui_pipeline, VK_SHADER_STAGE_FRAGMENT_BIT);
Reset(&g.frame_arena);
return g;

View File

@ -3145,10 +3145,12 @@ EnableVLayers(Vulkan* vk)
}
void
PrintShaderDisassembly(Vulkan* vk, Pipeline* pipeline, VkShaderStageFlagBits stage)
PrintShaderDisassembly(Vulkan* vk, Pipeline pipeline_id, VkShaderStageFlagBits stage)
{
version(AMD_GPU)
{
PipelineHandles* pipeline = vk.pipeline_handles.ptr + pipeline_id;
debug
{
u64 size;