gfxreconstruct
gfxreconstruct copied to clipboard
Enable marking of api calls injected by the replayer
For different reasons, it is useful to be able to mark the calls injected during the replay, as "injected".
In this change, it is done by calling functions that can mark the beginning of injected calls section and the ending of such section. This functions are loaded from a layer, and therefore this change is versatile in regards to what do you do with the calls that are marked as injected.
This change enables this, by adding a new replay option, that can be used to specify the names of the layers (that should be present on VK_LAYER_PATH
) as a comma separated list. This layers are then loaded when the instance is created, and are setup when the relevant device is created. The callbacks are stored inside a utility class, that is easy to use as a singleton in any file where you need your calls marked. To mark the calls, you should provide VulkanObjectInfo<T>
, or a handle id of a physical device directly.