[Feat] (DiligentEngine): Capable to render.

This commit is contained in:
BZLZHH
2025-06-05 13:58:34 +08:00
parent 2466897531
commit 6075ae1445
2 changed files with 90 additions and 42 deletions
@@ -17,12 +17,14 @@ namespace MG_EGL::Diligent {
::Diligent::RefCntAutoPtr<::Diligent::IDeviceContext> pContext;
::Diligent::RefCntAutoPtr<::Diligent::ISwapChain> pSwapChain;
::Diligent::RefCntAutoPtr<::Diligent::IPipelineState> pPSO;
::Diligent::RefCntAutoPtr<::Diligent::IRenderPass> pRenderPass;
std::vector<::Diligent::RefCntAutoPtr<::Diligent::IFramebuffer>> pFramebuffers;
bool initialized = false;
int majorVer = 1;
int minorVer = 5;
};
static struct DeviceContext ctx;
EGLSurface eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config, NativeWindowType window, const EGLint* attrib_list);