mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-18 23:43:23 +09:00
[MG_Test] (P7): the respecify-scope unit helpers are compiled only where the applier they read is, so the pull build builds again
This commit is contained in:
@@ -1351,6 +1351,11 @@ namespace {
|
|||||||
// A TEXTURE, NOT A BUFFER, and ScopedResourceOps with it: the scope is a texture concept,
|
// A TEXTURE, NOT A BUFFER, and ScopedResourceOps with it: the scope is a texture concept,
|
||||||
// and every non-buffer row is refused with RefusedNoConsumer unless a backend table is
|
// and every non-buffer row is refused with RefusedNoConsumer unless a backend table is
|
||||||
// registered - so without the scope this case would not reach the pin at all.
|
// registered - so without the scope this case would not reach the pin at all.
|
||||||
|
//
|
||||||
|
// The helpers are MOBILEGL_PIPE_PUSH-only, like the applier they read: a pull build compiles
|
||||||
|
// these two cases as skips (gate G2 keeps the names in every build), and MGPipeApplier() is
|
||||||
|
// not declared there.
|
||||||
|
#if MOBILEGL_PIPE_PUSH
|
||||||
MGPResourceDesc Tex2DDesc(MGPipeHandle res, Uint32 extent, Uint32 levels, Uint32 glName) {
|
MGPResourceDesc Tex2DDesc(MGPipeHandle res, Uint32 extent, Uint32 levels, Uint32 glName) {
|
||||||
MGPResourceDesc desc{};
|
MGPResourceDesc desc{};
|
||||||
desc.Resource = res;
|
desc.Resource = res;
|
||||||
@@ -1391,6 +1396,7 @@ namespace {
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
#endif // MOBILEGL_PIPE_PUSH
|
||||||
|
|
||||||
// THE POSITIVE. A per-level producer that covers its declared range is accepted, and the
|
// THE POSITIVE. A per-level producer that covers its declared range is accepted, and the
|
||||||
// accumulated texels of every OTHER level survive it - which is the thing the pin was
|
// accumulated texels of every OTHER level survive it - which is the thing the pin was
|
||||||
|
|||||||
Reference in New Issue
Block a user