mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-16 14:33:24 +09:00
343 lines
12 KiB
C++
343 lines
12 KiB
C++
// MobileGL - MobileGL/MG_Pipe/generated/PipeThunks.inc
|
|
// Copyright (c) 2025-2026 MobileGL-Dev
|
|
// Licensed under the GNU Lesser General Public License v3.0:
|
|
// https://www.gnu.org/licenses/gpl-3.0.txt
|
|
// https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
// SPDX-License-Identifier: LGPL-3.0-only
|
|
// End of Source File Header
|
|
|
|
// G2: monolith thunks over the two tables.
|
|
//
|
|
// GENERATED by scripts/gen_pipe.py from PipeCalls.def - DO NOT EDIT.
|
|
// Regenerate with `python3 scripts/gen_pipe.py`; CI runs it and diffs the result.
|
|
// This file is included from MG_Pipe/MGPipe.h inside namespace MobileGL::MG_Pipe.
|
|
|
|
// One inline call through the installed table. These are the names MG_Impl call
|
|
// sites move onto, replacing gBackendFunctionsTable.GL.* one at a time. An
|
|
// unimplemented (null) entry is the caller's business to check, exactly as it is
|
|
// with the table this replaces.
|
|
|
|
inline void MGP_GetCaps(const MGPCaps* payload, const void* blobBytes, Uint64 blobByteCount, MGPReplySlot* reply) {
|
|
gMGPipeScreen.GetCaps(payload, blobBytes, blobByteCount, reply);
|
|
}
|
|
|
|
inline void MGP_ResourceCreate(const MGPResourceDesc* payload, MGPReplySlot* reply) {
|
|
gMGPipeScreen.ResourceCreate(payload, reply);
|
|
}
|
|
|
|
inline void MGP_ResourceRespecify(const MGPResourceDesc* payload, MGPReplySlot* reply) {
|
|
gMGPipeScreen.ResourceRespecify(payload, reply);
|
|
}
|
|
|
|
inline void MGP_ResourceDestroy(const MGPHandleOnly* payload) {
|
|
gMGPipeScreen.ResourceDestroy(payload);
|
|
}
|
|
|
|
inline void MGP_MapPersistent(const MGPHandleOnly* payload, MGPReplySlot* reply) {
|
|
gMGPipeScreen.MapPersistent(payload, reply);
|
|
}
|
|
|
|
inline void MGP_UnmapPersistent(const MGPHandleOnly* payload) {
|
|
gMGPipeScreen.UnmapPersistent(payload);
|
|
}
|
|
|
|
inline void MGP_FenceCreate(const MGPHandleOnly* payload) {
|
|
gMGPipeScreen.FenceCreate(payload);
|
|
}
|
|
|
|
inline void MGP_FenceStatus(const MGPHandleOnly* payload, MGPReplySlot* reply) {
|
|
gMGPipeScreen.FenceStatus(payload, reply);
|
|
}
|
|
|
|
inline void MGP_FenceWait(const MGPFenceWait* payload, MGPReplySlot* reply) {
|
|
gMGPipeScreen.FenceWait(payload, reply);
|
|
}
|
|
|
|
inline void MGP_FenceDestroy(const MGPHandleOnly* payload) {
|
|
gMGPipeScreen.FenceDestroy(payload);
|
|
}
|
|
|
|
inline void MGP_QueryCreate(const MGPQueryDesc* payload) {
|
|
gMGPipeContext.QueryCreate(payload);
|
|
}
|
|
|
|
inline void MGP_QueryBegin(const MGPQueryDesc* payload) {
|
|
gMGPipeContext.QueryBegin(payload);
|
|
}
|
|
|
|
inline void MGP_QueryEnd(const MGPQueryDesc* payload) {
|
|
gMGPipeContext.QueryEnd(payload);
|
|
}
|
|
|
|
inline void MGP_QueryAvailable(const MGPHandleOnly* payload, MGPReplySlot* reply) {
|
|
gMGPipeContext.QueryAvailable(payload, reply);
|
|
}
|
|
|
|
inline void MGP_QueryResult(const MGPQueryResultRequest* payload, MGPReplySlot* reply) {
|
|
gMGPipeContext.QueryResult(payload, reply);
|
|
}
|
|
|
|
inline void MGP_QueryDestroy(const MGPHandleOnly* payload) {
|
|
gMGPipeContext.QueryDestroy(payload);
|
|
}
|
|
|
|
inline void MGP_CreateRenderState(const MGPRenderStateDesc* payload, const void* blobBytes, Uint64 blobByteCount) {
|
|
gMGPipeContext.CreateRenderState(payload, blobBytes, blobByteCount);
|
|
}
|
|
|
|
inline void MGP_BindRenderState(const MGPBindRenderState* payload) {
|
|
gMGPipeContext.BindRenderState(payload);
|
|
}
|
|
|
|
inline void MGP_DeleteRenderState(const MGPHandleOnly* payload) {
|
|
gMGPipeContext.DeleteRenderState(payload);
|
|
}
|
|
|
|
inline void MGP_CreateVertexElements(const MGPVertexElements* payload, const void* blobBytes, Uint64 blobByteCount) {
|
|
gMGPipeContext.CreateVertexElements(payload, blobBytes, blobByteCount);
|
|
}
|
|
|
|
inline void MGP_BindVertexElements(const MGPHandleOnly* payload) {
|
|
gMGPipeContext.BindVertexElements(payload);
|
|
}
|
|
|
|
inline void MGP_DeleteVertexElements(const MGPHandleOnly* payload) {
|
|
gMGPipeContext.DeleteVertexElements(payload);
|
|
}
|
|
|
|
inline void MGP_CreateSamplerState(const MGPSamplerDesc* payload, const void* blobBytes, Uint64 blobByteCount) {
|
|
gMGPipeContext.CreateSamplerState(payload, blobBytes, blobByteCount);
|
|
}
|
|
|
|
inline void MGP_DeleteSamplerState(const MGPHandleOnly* payload) {
|
|
gMGPipeContext.DeleteSamplerState(payload);
|
|
}
|
|
|
|
inline void MGP_CreateSamplerView(const MGPSamplerView* payload) {
|
|
gMGPipeContext.CreateSamplerView(payload);
|
|
}
|
|
|
|
inline void MGP_DeleteSamplerView(const MGPHandleOnly* payload) {
|
|
gMGPipeContext.DeleteSamplerView(payload);
|
|
}
|
|
|
|
inline void MGP_CreateShaderState(const MGPProgramDesc* payload, const void* blobBytes, Uint64 blobByteCount) {
|
|
gMGPipeContext.CreateShaderState(payload, blobBytes, blobByteCount);
|
|
}
|
|
|
|
inline void MGP_BindShaderState(const MGPHandleOnly* payload) {
|
|
gMGPipeContext.BindShaderState(payload);
|
|
}
|
|
|
|
inline void MGP_DeleteShaderState(const MGPHandleOnly* payload) {
|
|
gMGPipeContext.DeleteShaderState(payload);
|
|
}
|
|
|
|
inline void MGP_SetDynamicState(const MGPDynamicState* payload, const void* blobBytes, Uint64 blobByteCount) {
|
|
gMGPipeContext.SetDynamicState(payload, blobBytes, blobByteCount);
|
|
}
|
|
|
|
inline void MGP_SetFramebufferState(const MGPFramebufferState* payload) {
|
|
gMGPipeContext.SetFramebufferState(payload);
|
|
}
|
|
|
|
inline void MGP_SetVertexBuffers(const MGPVertexBuffers* payload, const void* varTail, Uint32 varTailCount) {
|
|
gMGPipeContext.SetVertexBuffers(payload, varTail, varTailCount);
|
|
}
|
|
|
|
inline void MGP_SetIndexBuffer(const MGPIndexBuffer* payload) {
|
|
gMGPipeContext.SetIndexBuffer(payload);
|
|
}
|
|
|
|
inline void MGP_SetIndirectBuffers(const MGPIndirectBuffers* payload) {
|
|
gMGPipeContext.SetIndirectBuffers(payload);
|
|
}
|
|
|
|
inline void MGP_SetSamplerViews(const MGPSamplerViews* payload, const void* varTail, Uint32 varTailCount) {
|
|
gMGPipeContext.SetSamplerViews(payload, varTail, varTailCount);
|
|
}
|
|
|
|
inline void MGP_BindSamplerStates(const MGPSamplerStates* payload, const void* varTail, Uint32 varTailCount) {
|
|
gMGPipeContext.BindSamplerStates(payload, varTail, varTailCount);
|
|
}
|
|
|
|
inline void MGP_SetShaderImages(const MGPShaderImages* payload, const void* varTail, Uint32 varTailCount) {
|
|
gMGPipeContext.SetShaderImages(payload, varTail, varTailCount);
|
|
}
|
|
|
|
inline void MGP_SetShaderBuffers(const MGPShaderBuffers* payload, const void* varTail, Uint32 varTailCount) {
|
|
gMGPipeContext.SetShaderBuffers(payload, varTail, varTailCount);
|
|
}
|
|
|
|
inline void MGP_SetStreamOutputTargets(const MGPStreamOutputTargets* payload, const void* varTail, Uint32 varTailCount) {
|
|
gMGPipeContext.SetStreamOutputTargets(payload, varTail, varTailCount);
|
|
}
|
|
|
|
inline void MGP_SetGlobalConstants(const MGPGlobalConstants* payload, const void* blobBytes, Uint64 blobByteCount) {
|
|
gMGPipeContext.SetGlobalConstants(payload, blobBytes, blobByteCount);
|
|
}
|
|
|
|
inline void MGP_SetVertexAttribDefaults(const MGPVertexAttribDefaults* payload, const void* varTail, Uint32 varTailCount) {
|
|
gMGPipeContext.SetVertexAttribDefaults(payload, varTail, varTailCount);
|
|
}
|
|
|
|
inline void MGP_SetPixelPackState(const MGPPixelPackState* payload) {
|
|
gMGPipeContext.SetPixelPackState(payload);
|
|
}
|
|
|
|
inline void MGP_SetPatchState(const MGPPatchState* payload) {
|
|
gMGPipeContext.SetPatchState(payload);
|
|
}
|
|
|
|
inline void MGP_SetDrawProgram(const MGPHandleOnly* payload) {
|
|
gMGPipeContext.SetDrawProgram(payload);
|
|
}
|
|
|
|
inline void MGP_SetDispatchProgram(const MGPHandleOnly* payload) {
|
|
gMGPipeContext.SetDispatchProgram(payload);
|
|
}
|
|
|
|
inline void MGP_SetResidualValueState(const MGPResidualValueState* payload, const void* blobBytes, Uint64 blobByteCount) {
|
|
gMGPipeContext.SetResidualValueState(payload, blobBytes, blobByteCount);
|
|
}
|
|
|
|
inline void MGP_SetTextureParams(const MGPTextureParams* payload, MGPReplySlot* reply) {
|
|
gMGPipeContext.SetTextureParams(payload, reply);
|
|
}
|
|
|
|
inline void MGP_ResourceSubData(const MGPSubData* payload, const void* blobBytes, Uint64 blobByteCount, const void* varTail, Uint32 varTailCount, MGPReplySlot* reply) {
|
|
gMGPipeContext.ResourceSubData(payload, blobBytes, blobByteCount, varTail, varTailCount, reply);
|
|
}
|
|
|
|
inline void MGP_BufferSubDataResident(const MGPSubData* payload, const void* blobBytes, Uint64 blobByteCount) {
|
|
gMGPipeContext.BufferSubDataResident(payload, blobBytes, blobByteCount);
|
|
}
|
|
|
|
inline void MGP_ResourceSubDataComplete(const MGPSubDataComplete* payload) {
|
|
gMGPipeContext.ResourceSubDataComplete(payload);
|
|
}
|
|
|
|
inline void MGP_ResourceFlushRange(const MGPFlushRange* payload) {
|
|
gMGPipeContext.ResourceFlushRange(payload);
|
|
}
|
|
|
|
inline void MGP_ResourceReadback(const MGPReadback* payload, MGPReplySlot* reply) {
|
|
gMGPipeContext.ResourceReadback(payload, reply);
|
|
}
|
|
|
|
inline void MGP_ResourceCopyRegion(const MGPCopyRegion* payload) {
|
|
gMGPipeContext.ResourceCopyRegion(payload);
|
|
}
|
|
|
|
inline void MGP_GenerateMipmap(const MGPMipPlan* payload) {
|
|
gMGPipeContext.GenerateMipmap(payload);
|
|
}
|
|
|
|
inline void MGP_GetTextureImage(const MGPReadbackInfo* payload, MGPReplySlot* reply) {
|
|
gMGPipeContext.GetTextureImage(payload, reply);
|
|
}
|
|
|
|
inline void MGP_Blit(const MGPBlit* payload) {
|
|
gMGPipeContext.Blit(payload);
|
|
}
|
|
|
|
inline void MGP_Clear(const MGPClear* payload) {
|
|
gMGPipeContext.Clear(payload);
|
|
}
|
|
|
|
inline void MGP_ReadPixels(const MGPReadbackInfo* payload, MGPReplySlot* reply) {
|
|
gMGPipeContext.ReadPixels(payload, reply);
|
|
}
|
|
|
|
inline void MGP_DrawVbo(const MGPDrawInfo* payload, const void* varTail, Uint32 varTailCount) {
|
|
gMGPipeContext.DrawVbo(payload, varTail, varTailCount);
|
|
}
|
|
|
|
inline void MGP_LaunchGrid(const MGPGridInfo* payload) {
|
|
gMGPipeContext.LaunchGrid(payload);
|
|
}
|
|
|
|
inline void MGP_MemoryBarrier(const MGPMemoryBarrier* payload) {
|
|
gMGPipeContext.MemoryBarrier(payload);
|
|
}
|
|
|
|
inline void MGP_BeginStreamOutput(const MGPStreamOutputBegin* payload) {
|
|
gMGPipeContext.BeginStreamOutput(payload);
|
|
}
|
|
|
|
inline void MGP_EndStreamOutput(const MGPXfbAccounting* payload) {
|
|
gMGPipeContext.EndStreamOutput(payload);
|
|
}
|
|
|
|
inline void MGP_PauseStreamOutput(const MGPStreamOutputControl* payload) {
|
|
gMGPipeContext.PauseStreamOutput(payload);
|
|
}
|
|
|
|
inline void MGP_ResumeStreamOutput(const MGPStreamOutputControl* payload) {
|
|
gMGPipeContext.ResumeStreamOutput(payload);
|
|
}
|
|
|
|
inline void MGP_Flush(const MGPFlush* payload) {
|
|
gMGPipeContext.Flush(payload);
|
|
}
|
|
|
|
inline void MGP_Present(const MGPPresent* payload) {
|
|
gMGPipeContext.Present(payload);
|
|
}
|
|
|
|
inline void MGP_SetSwapInterval(const MGPSwapInterval* payload) {
|
|
gMGPipeContext.SetSwapInterval(payload);
|
|
}
|
|
|
|
inline void MGP_QueryTimestamp(const MGPTimestampRequest* payload, MGPReplySlot* reply) {
|
|
gMGPipeContext.QueryTimestamp(payload, reply);
|
|
}
|
|
|
|
inline void MGP_QueryCounter(const MGPQueryDesc* payload) {
|
|
gMGPipeContext.QueryCounter(payload);
|
|
}
|
|
|
|
inline void MGP_FenceWaitServer(const MGPFenceWait* payload) {
|
|
gMGPipeScreen.FenceWaitServer(payload);
|
|
}
|
|
|
|
inline void MGP_BindShaderImage(const MGPImageBind* payload) {
|
|
gMGPipeContext.BindShaderImage(payload);
|
|
}
|
|
|
|
inline void MGP_PatchParameter(const MGPPatchParameter* payload) {
|
|
gMGPipeContext.PatchParameter(payload);
|
|
}
|
|
|
|
inline void MGP_BindStreamOutput(const MGPStreamOutputBind* payload) {
|
|
gMGPipeContext.BindStreamOutput(payload);
|
|
}
|
|
|
|
inline void MGP_SetStorageBlockBinding(const MGPStorageBlockBinding* payload, const void* blobBytes, Uint64 blobByteCount) {
|
|
gMGPipeContext.SetStorageBlockBinding(payload, blobBytes, blobByteCount);
|
|
}
|
|
|
|
inline void MGP_CopyFramebufferToTexture(const MGPCopyFromFramebuffer* payload) {
|
|
gMGPipeContext.CopyFramebufferToTexture(payload);
|
|
}
|
|
|
|
inline void MGP_ApplierReset(const MGPApplierReset* payload) {
|
|
gMGPipeScreen.ApplierReset(payload);
|
|
}
|
|
|
|
inline void MGP_ObjectDeath(const MGPHandleOnly* payload) {
|
|
gMGPipeContext.ObjectDeath(payload);
|
|
}
|
|
|
|
inline void MGP_SetContextValues(const MGPContextValues* payload) {
|
|
gMGPipeContext.SetContextValues(payload);
|
|
}
|
|
|
|
inline void MGP_SetProgramBindings(const MGPProgramBindings* payload, const void* varTail, Uint32 varTailCount) {
|
|
gMGPipeContext.SetProgramBindings(payload, varTail, varTailCount);
|
|
}
|
|
|
|
inline void MGP_DeleteStreamOutput(const MGPStreamOutputBind* payload) {
|
|
gMGPipeContext.DeleteStreamOutput(payload);
|
|
}
|