aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/vk/GrVkUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/vk/GrVkUtil.cpp')
-rw-r--r--src/gpu/vk/GrVkUtil.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/vk/GrVkUtil.cpp b/src/gpu/vk/GrVkUtil.cpp
index c56a4fb6fb..84406c8ee8 100644
--- a/src/gpu/vk/GrVkUtil.cpp
+++ b/src/gpu/vk/GrVkUtil.cpp
@@ -231,6 +231,9 @@ SkSL::Program::Kind vk_shader_stage_to_skiasl_kind(VkShaderStageFlagBits stage)
if (VK_SHADER_STAGE_VERTEX_BIT == stage) {
return SkSL::Program::kVertex_Kind;
}
+ if (VK_SHADER_STAGE_GEOMETRY_BIT == stage) {
+ return SkSL::Program::kGeometry_Kind;
+ }
SkASSERT(VK_SHADER_STAGE_FRAGMENT_BIT == stage);
return SkSL::Program::kFragment_Kind;
}
@@ -239,6 +242,9 @@ VkShaderStageFlagBits skiasl_kind_to_vk_shader_stage(SkSL::Program::Kind kind) {
if (SkSL::Program::kVertex_Kind == kind) {
return VK_SHADER_STAGE_VERTEX_BIT;
}
+ if (SkSL::Program::kGeometry_Kind == kind) {
+ return VK_SHADER_STAGE_GEOMETRY_BIT;
+ }
SkASSERT(SkSL::Program::kFragment_Kind == kind);
return VK_SHADER_STAGE_FRAGMENT_BIT;
}