created ULRE.Work contains WorkObject/WorkManager

This commit is contained in:
2025-01-28 20:48:43 +08:00
parent dd0cf9bf51
commit 93e38fc14f
10 changed files with 69 additions and 54 deletions

View File

@@ -10,7 +10,7 @@
set_property(TARGET ${name} PROPERTY FOLDER "ULRE/Example/Basic")
endmacro()
CreateProject(00_RenderFrameworkTest rf_test.cpp ${WORK_FILES})
CreateProject(00_RenderFrameworkTest rf_test.cpp)
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,9 +1,9 @@
// 该范例主要演示使用NDC坐标系直接绘制一个渐变色的三角形
#include"WorkManager.h"
#include<hgl/WorkManager.h>
#include<hgl/math/HalfFloat.h>
#include<hgl/graph/VKVertexInputConfig.h>
#include<hgl/graph/PrimitiveCreater.h>
#include<hgl/graph/VKRenderResource.h>
#include<hgl/graph/mtl/Material2DCreateConfig.h>
#include<hgl/graph/VKMaterialInstance.h>