Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resource system rewrite based on coroutines #36

Closed
wants to merge 11 commits into from
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@
[submodule "extern/litmus"]
path = extern/litmus
url = https://github.com/JessyDL/litmus.git
[submodule "extern/cppcoro"]
path = extern/cppcoro
url = https://github.com/JessyDL/cppcoro.git
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ if(PE_PLATFORM STREQUAL AUTO)
endif()
endif()

string(TOUPPER PE_MODE PE_MODE)
list(APPEND PE_DEFINES -DPLATFORM_${PE_MODE})
string(TOUPPER ${PE_MODE} PE_MODE)
list(APPEND PE_DEFINES -DPE_${PE_MODE})

# experimental early support for not supporting vulkan
if(PE_VULKAN)
Expand Down
4 changes: 1 addition & 3 deletions core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ endif()

target_link_libraries(${LOCAL_PROJECT} PUBLIC
${PROJECT_PSL} ${CMAKE_DL_LIBS}
${PROJECT_INTERCEPT} ${PE_DL_LIBS} ${TEST_LIBS})
${PROJECT_INTERCEPT} ${PE_DL_LIBS} ${TEST_LIBS} gli cppcoro)

target_include_directories(${LOCAL_PROJECT}
PUBLIC
Expand All @@ -131,8 +131,6 @@ target_include_directories(${LOCAL_PROJECT}
${WSI_INC}
)

target_link_libraries(${LOCAL_PROJECT} PUBLIC gli)

if(WSI_LIB OR NOT WSI_LIB STREQUAL "")
target_link_libraries(${LOCAL_PROJECT} PUBLIC ${WSI_LIB})
endif()
Expand Down
8 changes: 8 additions & 0 deletions core/inc/gfx/limits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ namespace core::gfx
} compute;

core::gfx::format_t supported_depthformat;

struct resources
{
uint32_t ssbo;
};

resources vertex_shader {};
resources fragment_shader {};
};

constexpr inline limits::buffer min(const limits::buffer& l, const limits::buffer& r) noexcept
Expand Down
Loading