refactor WorkObject/WorkManager

This commit is contained in:
2025-01-26 09:46:59 +08:00
parent 6e12a411b1
commit 053e579071
6 changed files with 120 additions and 97 deletions

View File

@@ -10,7 +10,7 @@
set_property(TARGET ${name} PROPERTY FOLDER "ULRE/Example/Basic")
endmacro()
CreateProject(00_RenderFrameworkTest rf_test.cpp)
CreateProject(00_RenderFrameworkTest rf_test.cpp ${WORK_FILES})
CreateProject(01_draw_triangle_in_NDC draw_triangle_in_NDC.cpp)
CreateProject(02_draw_triangle_use_UBO draw_triangle_use_UBO.cpp)
CreateProject(03_auto_instance auto_instance.cpp)

View File

@@ -1,6 +1,6 @@
// 该范例主要演示使用NDC坐标系直接绘制一个渐变色的三角形
#include"WorkObject.h"
#include"WorkManager.h"
#include<hgl/math/HalfFloat.h>
#include<hgl/graph/VKVertexInputConfig.h>
#include<hgl/graph/PrimitiveCreater.h>