Updated as suggested by wolf in the PR

This commit is contained in:
Rahul Gupta 2021-02-23 09:01:06 -06:00 committed by David Farrell
parent c5fa9be41e
commit a950e444b5
3 changed files with 1 additions and 8 deletions

View File

@ -34,7 +34,3 @@ message(STATUS "TRACY_PORT: ${TRACY_PORT}")
target_compile_definitions(tracy_client PUBLIC TRACY_PORT=${TRACY_PORT})
target_include_directories(tracy_client PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
if (UNIX)
target_link_libraries(tracy_client PRIVATE ${CMAKE_DL_LIBS})
endif()

View File

@ -105,10 +105,6 @@
#include "client/TracyProfiler.hpp"
#include "client/TracyScoped.hpp"
#define TracySourceLocation( varname ) static const tracy::SourceLocationData varname { nullptr, __FUNCTION__, __FILE__, (uint32_t)__LINE__, 0 };
#define TracySourceLocationN( varname, name ) static const tracy::SourceLocationData varname { name, __FUNCTION__, __FILE__, (uint32_t)__LINE__, 0 };
#define TracySourceLocationNC( varname, name, color ) static const tracy::SourceLocationData varname { name, __FUNCTION__, __FILE__, (uint32_t)__LINE__, color };
#if defined TRACY_HAS_CALLSTACK && defined TRACY_CALLSTACK
# define ZoneNamed( varname, active ) static constexpr tracy::SourceLocationData TracyConcat(__tracy_source_location,__LINE__) { nullptr, __FUNCTION__, __FILE__, (uint32_t)__LINE__, 0 }; tracy::ScopedZone varname( &TracyConcat(__tracy_source_location,__LINE__), TRACY_CALLSTACK, active );
# define ZoneNamedN( varname, name, active ) static constexpr tracy::SourceLocationData TracyConcat(__tracy_source_location,__LINE__) { name, __FUNCTION__, __FILE__, (uint32_t)__LINE__, 0 }; tracy::ScopedZone varname( &TracyConcat(__tracy_source_location,__LINE__), TRACY_CALLSTACK, active );

View File

@ -72,6 +72,7 @@ constexpr const char* GpuContextNames[] = {
"Vulkan",
"OpenCL",
"Direct3D 12"
"Direct3D 11"
};