0426947243
GrGLSLGeometryProcessors no longer have to call emitTransforms() in their onEmitCode() function. Instead, the GpArgs struct allows them to set a GrShaderVar that holds the computed or explicitly provided local coordinates in the vertex shader. The base GrGLSLGeometryProcessor now automatically uses that to collect all of the transforms that can then be lifted out of FPs to the vertex shader, and base their computation on the GP provided local coordinate. As part of this, there is no more built-in magic concatenation of a local matrix / inverse view matrix to these coordinate transforms. GP implementations that relied on this now manage their own uniform for this matrix and compute the local coordinate before assigning to GpArgs. The base GrGLSLGeometryProcessor is updated to provide helpers for this pattern. Bug: skia:10396 Change-Id: I56afb3fff4b806f6015ab13626ac1afde9ef5c2b Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297027 Commit-Queue: Michael Ludwig <michaelludwig@google.com> Reviewed-by: Brian Osman <brianosman@google.com> |
||
---|---|---|
.. | ||
d3d | ||
dawn | ||
gl | ||
mock | ||
mtl | ||
vk | ||
FenceSync.h | ||
FlushFinishTracker.h | ||
GpuTimer.h | ||
GrContextFactory.cpp | ||
GrContextFactory.h | ||
GrTest.cpp | ||
MemoryCache.cpp | ||
MemoryCache.h | ||
ProxyUtils.cpp | ||
ProxyUtils.h | ||
TestContext.cpp | ||
TestContext.h | ||
TestOps.cpp | ||
TestOps.h | ||
YUVUtils.cpp | ||
YUVUtils.h |