mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-17 15:03:25 +09:00
[MG_Pipe, MG_Remote, MG_Backend] (P7): bind staged bytes to declared mip extents
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
|
||||
#include "ServerSession.h"
|
||||
#include "../Transport/ReplySlot.h"
|
||||
#include "StagedTextureStore.h"
|
||||
|
||||
#include <Config.h>
|
||||
#include <MG_Backend/MGPipe/PipeInputs.h>
|
||||
@@ -87,6 +88,12 @@ namespace MobileGL::MG_Remote::Server {
|
||||
ReleaseFences();
|
||||
}
|
||||
m_backend = backend;
|
||||
if (backend != nullptr) {
|
||||
const auto& limits = backend->GetDynamicParameters();
|
||||
ServerStagedTexture().SetDeviceLimits(
|
||||
limits.MaxTextureSize, limits.Max3DTextureSize, limits.MaxCubeMapTextureSize,
|
||||
limits.MaxArrayTextureLayers, limits.MaxTextureBufferSize);
|
||||
}
|
||||
}
|
||||
|
||||
const MG_Backend::GlobalBackendFunctionsTable* ServerVerbSink::Table(const char* verb) const {
|
||||
|
||||
Reference in New Issue
Block a user