Vulkan: Debugging Tools #107635
No reviewers
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#107635
Loading…
Reference in New Issue
No description provided.
Delete Branch ":vk_debug_messenger2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR is a split off part of this PR.It mainly provides utilities for using Messenger from an extension called VkDebugUtils.
Vulkan: Debugging Toolsto WIP: Vulkan: Debugging Tools@ -530,1 +530,4 @@
const char *to_string(VkObjectType type)
{
#define __STR_VK_CHECK(s) "" #s
Use
BLI_utildefines.h#STRINGIFY
@ -59,6 +59,10 @@ void VKContext::activate()
back_left = framebuffer;
framebuffer->bind(false);
}
debug::raise_message(0xB41CA2,
I imagine this is a test and would be removed eventually
@ -98,3 +103,4 @@
void VKDebuggingTools::deinit()
{
if (enabled) {
Best to add
VkInstance
as parameter to this method to make it consistent withinit
@ -207,0 +232,4 @@
void VKDebuggingTools::print_labels(const VkDebugUtilsMessengerCallbackDataEXT *callback_data,
bool use_color)
{
#define COLOR_FILE \
Although they are useful terminal colors aren't cross platform compatible. So would prefer to not using colors at all in local code. If you want colored output, use CLog.
It should have been confirmed in this passage.
I see, perhaps use decimal notation for consistency for better traceability
\033[2m
etc.@ -207,0 +370,4 @@
return VK_TRUE;
};
VkResult VKDebuggingTools::create_messenger(VkInstance vk_instance)
create typically returns the newly created resource, here I would use
init_messenger
.Just a small change requested. For the rest seems fine!
WIP: Vulkan: Debugging Toolsto Vulkan: Debugging ToolsThere are some circular includes that makes this not compile on linux.
vk_context include vk_debug, vk_debug needs full definition of vk_context.
Perhaps inversing the include (vk_debug includes vk_context, and vk_context does a pre-declaration would solve this.
I retested this branch and it is working.
I would only keep the objects close to the message it belongs to. But I can tweak a bit when it is applied. Can you make sure this branch is up to date with main. Thanks!
No conflict seems to occur.thank you too from me.