Giovanni Mascellani (@giomasce) commented about libs/vkd3d-shader/hlsl_sm4.c:
VKD3D_SM4_LIB, };
- extern_resources = sm4_get_extern_resources(ctx, &extern_resources_count);
Is there a reason for calling this twice? Can't the first computation be cached?