forked from google/skia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[graphite] Support uniform buffers in ComputeSteps
* Introduced the `ComptueStep::prepareUniformBuffer()` method which is invoked with a `UniformManager` pointer to handle the field encoding with the correct layout constraints. * Unlike RenderSteps, ComputeSteps do not use a PipelineDataGatherer nor to they need to declare their uniforms using the `Uniform` POD type, since ComputeSteps are not assembled from snippets. However, they still need to call `UniformManager::setExpectedUniforms` to satisfy UniformManager's debug validation assertions. * Renamed `ComputeStep::prepareBuffer()` to `prepareStorageBuffer()` as this is now exclusively used for internally allocated storage buffers. Change-Id: I7e30a4402a5aeb6cd4eafd5abde2f999e431eb76 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/665584 Commit-Queue: Arman Uguray <[email protected]> Reviewed-by: Jim Van Verth <[email protected]> Reviewed-by: Michael Ludwig <[email protected]>
- Loading branch information
Showing
4 changed files
with
258 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.