Add missing checks for geometry shader stages in GrVkUtil.cpp
Bug: skia: Change-Id: I30cb6d5ee5016536537c48346c58ef4cf19f16c5 Reviewed-on: https://skia-review.googlesource.com/21845 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Chris Dalton <csmartdalton@google.com>
This commit is contained in:
parent
8545915d62
commit
33607c614f
@ -231,6 +231,9 @@ SkSL::Program::Kind vk_shader_stage_to_skiasl_kind(VkShaderStageFlagBits stage)
|
|||||||
if (VK_SHADER_STAGE_VERTEX_BIT == stage) {
|
if (VK_SHADER_STAGE_VERTEX_BIT == stage) {
|
||||||
return SkSL::Program::kVertex_Kind;
|
return SkSL::Program::kVertex_Kind;
|
||||||
}
|
}
|
||||||
|
if (VK_SHADER_STAGE_GEOMETRY_BIT == stage) {
|
||||||
|
return SkSL::Program::kGeometry_Kind;
|
||||||
|
}
|
||||||
SkASSERT(VK_SHADER_STAGE_FRAGMENT_BIT == stage);
|
SkASSERT(VK_SHADER_STAGE_FRAGMENT_BIT == stage);
|
||||||
return SkSL::Program::kFragment_Kind;
|
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) {
|
if (SkSL::Program::kVertex_Kind == kind) {
|
||||||
return VK_SHADER_STAGE_VERTEX_BIT;
|
return VK_SHADER_STAGE_VERTEX_BIT;
|
||||||
}
|
}
|
||||||
|
if (SkSL::Program::kGeometry_Kind == kind) {
|
||||||
|
return VK_SHADER_STAGE_GEOMETRY_BIT;
|
||||||
|
}
|
||||||
SkASSERT(SkSL::Program::kFragment_Kind == kind);
|
SkASSERT(SkSL::Program::kFragment_Kind == kind);
|
||||||
return VK_SHADER_STAGE_FRAGMENT_BIT;
|
return VK_SHADER_STAGE_FRAGMENT_BIT;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user