mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-11 21:58:31 +09:00
[Perf] (ShaderTranspiler, Benchmark): add a per-stage stopwatch for the DirectGLES program-build chain
This commit is contained in:
@@ -44,3 +44,4 @@ add_subdirectory(Program)
|
|||||||
add_subdirectory(Buffer)
|
add_subdirectory(Buffer)
|
||||||
add_subdirectory(Driver)
|
add_subdirectory(Driver)
|
||||||
add_subdirectory(Container)
|
add_subdirectory(Container)
|
||||||
|
add_subdirectory(Transpile)
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
cmake_minimum_required(VERSION 3.24)
|
||||||
|
|
||||||
|
# Deliberately NOT a google-benchmark target: the interesting quantity is a per-stage
|
||||||
|
# breakdown of one program build, which needs its own clock around sub-steps that share
|
||||||
|
# set-up, and a plain main() keeps the output a table this can be read straight out of.
|
||||||
|
add_executable(
|
||||||
|
TranspileProfile
|
||||||
|
TranspileProfile.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
target_include_directories(TranspileProfile PRIVATE
|
||||||
|
${MGL_ROOT}/include
|
||||||
|
${MGL_ROOT}/MobileGL
|
||||||
|
${MGL_ROOT}/3rdparty/SPIRV-Reflect
|
||||||
|
)
|
||||||
|
|
||||||
|
target_link_libraries(
|
||||||
|
TranspileProfile PRIVATE
|
||||||
|
${LINK_LIBRARIES}
|
||||||
|
)
|
||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user