diff options
author | cdalton <cdalton@nvidia.com> | 2016-03-11 10:07:37 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-11 10:07:37 -0800 |
commit | 9c3f14327a38e79ab7d0cf30dfd9bf89676fde06 (patch) | |
tree | f4695cc85cf19bf471ed8c956083f2234f18d4e1 /src/gpu/vk/GrVkTexture.cpp | |
parent | 6b563156eb7ce05b51997695ec9ab2aedcc2e6b1 (diff) |
Add support for vertex and geometry shader textures
Adds a visibility bitfield to GrTextureAccess that controls in which
shaders the texture should be accessible. Also adds caps and
validation to ensure we don't exceed texture limits.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1782583002
Review URL: https://codereview.chromium.org/1782583002
Diffstat (limited to 'src/gpu/vk/GrVkTexture.cpp')
-rw-r--r-- | src/gpu/vk/GrVkTexture.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gpu/vk/GrVkTexture.cpp b/src/gpu/vk/GrVkTexture.cpp index c8247ca2f6..5c4c3bd6c7 100644 --- a/src/gpu/vk/GrVkTexture.cpp +++ b/src/gpu/vk/GrVkTexture.cpp @@ -20,7 +20,8 @@ GrVkTexture::GrVkTexture(GrVkGpu* gpu, const GrVkImageView* view) : GrSurface(gpu, lifeCycle, desc) , GrVkImage(imageResource) - , INHERITED(gpu, lifeCycle, desc, false) // false because we don't upload MIP data in Vk yet + , INHERITED(gpu, lifeCycle, desc, kSampler2D_GrSLType, + false) // false because we don't upload MIP data in Vk yet , fTextureView(view) { this->registerWithCache(); } @@ -34,7 +35,8 @@ GrVkTexture::GrVkTexture(GrVkGpu* gpu, Derived) : GrSurface(gpu, lifeCycle, desc) , GrVkImage(imageResource) - , INHERITED(gpu, lifeCycle, desc, false) // false because we don't upload MIP data in Vk yet + , INHERITED(gpu, lifeCycle, desc, kSampler2D_GrSLType, + false) // false because we don't upload MIP data in Vk yet , fTextureView(view) {} |