diff --git a/Backends/Graphics5/Direct3D12/Sources/kope/direct3d12/commandlist.cpp b/Backends/Graphics5/Direct3D12/Sources/kope/direct3d12/commandlist.cpp index 14c2de9f0..234c347c5 100644 --- a/Backends/Graphics5/Direct3D12/Sources/kope/direct3d12/commandlist.cpp +++ b/Backends/Graphics5/Direct3D12/Sources/kope/direct3d12/commandlist.cpp @@ -7,6 +7,8 @@ #include +#include + #include "pipeline_structs.h" #include @@ -632,3 +634,17 @@ void kope_d3d12_command_list_set_blend_constant(kope_g5_command_list *list, kope void kope_d3d12_command_list_set_stencil_reference(kope_g5_command_list *list, uint32_t reference) { list->d3d12.list->OMSetStencilRef(reference); } + +void kope_d3d12_command_list_set_name(kope_g5_command_list *list, const char *name) { + wchar_t wstr[1024]; + kinc_microsoft_convert_string(wstr, name, 1024); + list->d3d12.list->SetName(wstr); +} + +void kope_d3d12_command_list_push_debug_group(kope_g5_command_list *list, const char *name) {} + +void kope_d3d12_command_list_pop_debug_group(kope_g5_command_list *list) {} + +void kope_d3d12_command_list_insert_debug_marker(kope_g5_command_list *list, const char *name) { + // PIXSetMarker(); +} diff --git a/Backends/Graphics5/Direct3D12/Sources/kope/direct3d12/commandlist_functions.h b/Backends/Graphics5/Direct3D12/Sources/kope/direct3d12/commandlist_functions.h index 184d03687..ccce71aa5 100644 --- a/Backends/Graphics5/Direct3D12/Sources/kope/direct3d12/commandlist_functions.h +++ b/Backends/Graphics5/Direct3D12/Sources/kope/direct3d12/commandlist_functions.h @@ -73,6 +73,14 @@ void kope_d3d12_command_list_set_ray_pipeline(kope_g5_command_list *list, kope_d void kope_d3d12_command_list_trace_rays(kope_g5_command_list *list, uint32_t width, uint32_t height, uint32_t depth); +void kope_d3d12_command_list_set_name(kope_g5_command_list *list, const char *name); + +void kope_d3d12_command_list_push_debug_group(kope_g5_command_list *list, const char *name); + +void kope_d3d12_command_list_pop_debug_group(kope_g5_command_list *list); + +void kope_d3d12_command_list_insert_debug_marker(kope_g5_command_list *list, const char *name); + #ifdef __cplusplus } #endif diff --git a/Sources/kope/graphics5/commandlist.c b/Sources/kope/graphics5/commandlist.c index 5a92f27ea..d85d05bd8 100644 --- a/Sources/kope/graphics5/commandlist.c +++ b/Sources/kope/graphics5/commandlist.c @@ -101,3 +101,19 @@ void kope_g5_command_list_set_blend_constant(kope_g5_command_list *list, kope_g5 void kope_g5_command_list_set_stencil_reference(kope_g5_command_list *list, uint32_t reference) { KOPE_G5_CALL2(command_list_set_stencil_reference, list, reference); } + +void kope_g5_command_list_set_name(kope_g5_command_list *list, const char *name) { + KOPE_G5_CALL2(command_list_set_name, list, name); +} + +void kope_g5_command_list_push_debug_group(kope_g5_command_list *list, const char *name) { + KOPE_G5_CALL2(command_list_push_debug_group, list, name); +} + +void kope_g5_command_list_pop_debug_group(kope_g5_command_list *list) { + KOPE_G5_CALL1(command_list_pop_debug_group, list); +} + +void kope_g5_command_list_insert_debug_marker(kope_g5_command_list *list, const char *name) { + KOPE_G5_CALL2(command_list_insert_debug_marker, list, name); +}