fix shader disassembly
This commit is contained in:
parent
f4a8cef602
commit
eafd47b04e
@ -126,6 +126,9 @@ InitGame(PlatformWindow* window)
|
|||||||
|
|
||||||
g.ui_pipeline = CreateGraphicsPipeline(&g.rd, &ui_info);
|
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);
|
Reset(&g.frame_arena);
|
||||||
|
|
||||||
return g;
|
return g;
|
||||||
|
|||||||
@ -3145,10 +3145,12 @@ EnableVLayers(Vulkan* vk)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
PrintShaderDisassembly(Vulkan* vk, Pipeline* pipeline, VkShaderStageFlagBits stage)
|
PrintShaderDisassembly(Vulkan* vk, Pipeline pipeline_id, VkShaderStageFlagBits stage)
|
||||||
{
|
{
|
||||||
version(AMD_GPU)
|
version(AMD_GPU)
|
||||||
{
|
{
|
||||||
|
PipelineHandles* pipeline = vk.pipeline_handles.ptr + pipeline_id;
|
||||||
|
|
||||||
debug
|
debug
|
||||||
{
|
{
|
||||||
u64 size;
|
u64 size;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user