skia2/tools/gpu
Brian Salomon 6927ab9311 Add support for explicit attribute offsets and strides.
Previously attribute offsets were always computed based on their
position in an attribute array and the stride was determined
by the offset and size of the last attribute.

Now a GP has the option to create attributes with explicit offsets
and specify an explicit vertex stride. All attributes must either
be implicit or explicit (enforced by assert).

GrGeometryProcessor::AttributeSet is now responsible for handling
implicitly determined attribute offsets and strides. The backends
no longer compute them.

Bug: skia:12720
Change-Id: I0211673dc70d4797c2d66b2555d8f5fb430be056
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/484736
Reviewed-by: Greg Daniel <egdaniel@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2021-12-16 14:38:12 +00:00
..
d3d [bazel] Try adding cc_binary rules that use generated rules 2021-11-30 18:18:53 +00:00
dawn [bazel] Try adding cc_binary rules that use generated rules 2021-11-30 18:18:53 +00:00
gl [bazel] Try adding cc_binary rules that use generated rules 2021-11-30 18:18:53 +00:00
mock [bazel] Try adding cc_binary rules that use generated rules 2021-11-30 18:18:53 +00:00
mtl [bazel] Try adding cc_binary rules that use generated rules 2021-11-30 18:18:53 +00:00
vk [bazel] Try adding cc_binary rules that use generated rules 2021-11-30 18:18:53 +00:00
BackendSurfaceFactory.cpp Revert "Revert "Reland "asyncRescaleAndRead supports unpremul results on GPU""" 2021-01-22 14:21:01 +00:00
BackendSurfaceFactory.h Revert "Reland "Revert "Use ManagedBackendTexture in place of TestUtils backend texture helpers.""" 2020-10-13 01:22:13 +00:00
BackendTextureImageFactory.cpp Take origin when creating/updating backend texture using pixmaps. 2020-12-07 20:31:10 +00:00
BackendTextureImageFactory.h Revert "Reland "Revert "Use ManagedBackendTexture in place of TestUtils backend texture helpers.""" 2020-10-13 01:22:13 +00:00
BUILD.bazel [bazel] Try adding cc_binary rules that use generated rules 2021-11-30 18:18:53 +00:00
FenceSync.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
FlushFinishTracker.cpp Update additional tools to take a GrDirectContext 2020-07-01 20:42:25 +00:00
FlushFinishTracker.h Update additional tools to take a GrDirectContext 2020-07-01 20:42:25 +00:00
GpuTimer.h Replace skstd::exchange with std::exchange 2020-04-30 11:14:20 +00:00
GrContextFactory.cpp Reland "Add new GrSurfaceInfo class and related backend structs." 2021-09-20 20:44:53 +00:00
GrContextFactory.h Fix -Wdeprecated-copy warnings 2021-08-03 16:06:11 +00:00
GrTest.cpp rename GrTextBlobCache to GrTextBlobRedrawCoordinator 2021-12-13 17:38:00 +00:00
ManagedBackendTexture.cpp Bitmap.asImage() 2020-12-23 15:54:57 +00:00
ManagedBackendTexture.h Use the ManagedBackendTexture helper in fiddle_main 2020-12-08 17:39:12 +00:00
MemoryCache.cpp Migrate PersistentCacheUtils logic into a cpp file. 2021-04-12 14:09:59 +00:00
MemoryCache.h Reland "Redesign program key construction" 2021-03-03 17:44:00 +00:00
ProxyUtils.cpp Store the correct number of samples in GrProgramInfo 2021-08-26 17:24:47 +00:00
ProxyUtils.h Store the correct number of samples in GrProgramInfo 2021-08-26 17:24:47 +00:00
TestContext.cpp Enable ClangTidy check llvm-namespace-comment. 2020-08-06 19:07:52 +00:00
TestContext.h Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
TestOps.cpp Add support for explicit attribute offsets and strides. 2021-12-16 14:38:12 +00:00
TestOps.h Switch GrMeshDrawOp::Target to be the stand alone GrMeshDrawTarget class 2021-06-17 19:57:43 +00:00
YUVUtils.cpp YUVUtils function for splitting image into yuva planes. 2021-05-24 14:10:39 +00:00
YUVUtils.h YUVUtils function for splitting image into yuva planes. 2021-05-24 14:10:39 +00:00