Skip to content
This repository has been archived by the owner on Jul 19, 2018. It is now read-only.

VK_EXT_debug_utils - missing object names in cases where they could be added #2654

Open
danginsburg opened this issue May 8, 2018 · 1 comment
Assignees
Milestone

Comments

@danginsburg
Copy link

I've hooked up my engine to VK_EXT_debug_utils. For a while I have been using debug_marker extension with Renderdoc to name resources including images, buffers, and shader modules. I noticed after hooking up to VK_EXT_debug_utils that there are cases where object names could easily be provided for shader modules, but are not done. For example:

VK WARNING : VALIDATION - Message Id Number: 2 | Message Id Name: none
	fragment shader writes to output location 0 with no matching attachment

	Objects - 1
		Object[0] - VK_OBJECT_TYPE_UNKNOWN, Handle 0000000000000000

Looking at where these messages originate in shader_validation.cpp, it is because it is doing log_msg with VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT and null object even though it knows the VkShaderModule at the point of finding the error.

The request here is to provide the VkShaderModule object so the name gets passed through.

In general, I would request that if it hasn't been done already that there is an audit of log_msg's to make sure they pass in the known object so the application can get the name.

@MarkY-LunarG
Copy link
Contributor

Since this is a validation layer item, I'm assigning it to @mark-lunarg, he can re-assign it as necessary. Thanks @danginsburg for the suggestion.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

4 participants