Fix Vulkan Copy as draw shader

Bug: skia:7663
Change-Id: I745900ccc56c697e4abb982e921d99bc28502b33
Reviewed-on: https://skia-review.googlesource.com/114687
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
This commit is contained in:
Greg Daniel 2018-03-16 08:52:32 -04:00 committed by Skia Commit-Bot
parent 874b5357da
commit e464160f69
2 changed files with 2 additions and 4 deletions

View File

@ -65,11 +65,10 @@ bool GrVkCopyManager::createCopyProgram(GrVkGpu* gpu) {
"layout(set = 1, binding = 0) uniform sampler2D uTextureSampler;"
"layout(location = 1) in half2 vTexCoord;"
"layout(location = 0, index = 0) out half4 fsColorOut;"
"// Copy Program FS\n"
"void main() {"
"fsColorOut = texture(uTextureSampler, vTexCoord);"
"sk_FragColor = texture(uTextureSampler, vTexCoord);"
"}"
);

View File

@ -55,11 +55,10 @@ public:
"layout(set = 1, binding = 0) uniform sampler2D uTextureSampler;"
"layout(location = 1) in half2 vTexCoord;"
"layout(location = 0, index = 0) out half4 fsColorOut;"
"// Copy Program FS\n"
"void main() {"
"fsColorOut = texture(uTextureSampler, vTexCoord);"
"sk_FragColor = texture(uTextureSampler, vTexCoord);"
"}";
SkSL::Program::Settings settings;