sksl now sees vulkan caps

Bug: skia:
Change-Id: I41714d80685427a7711b000e61f7fc7e70371253
Reviewed-on: https://skia-review.googlesource.com/24182
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
This commit is contained in:
Ethan Nicholas 2017-07-18 14:08:18 -04:00 committed by Skia Commit-Bot
parent b55eb28a17
commit e46828675c

View File

@ -139,6 +139,7 @@ GrVkPipelineState* GrVkPipelineStateBuilder::finalize(const GrStencilSettings& s
VkPipelineShaderStageCreateInfo shaderStageInfo[3];
SkSL::Program::Settings settings;
settings.fCaps = this->caps()->shaderCaps();
settings.fFlipY = this->pipeline().getRenderTarget()->origin() != kTopLeft_GrSurfaceOrigin;
SkAssertResult(this->createVkShaderModule(VK_SHADER_STAGE_VERTEX_BIT,
fVS,