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:
parent
874b5357da
commit
e464160f69
@ -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);"
|
||||
"}"
|
||||
);
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user