diff options
author | cdalton <cdalton@nvidia.com> | 2016-02-11 12:49:47 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-11 12:49:47 -0800 |
commit | 5e58ceea8569f0d90ff7e3daf5de2def50407212 (patch) | |
tree | bbe7f5ff37b6ef7e38830e85e8f4a392ddb75903 /include | |
parent | ddb64c81fbe05ef7188135564bbd695edea9fdf0 (diff) |
Add GrShaderFlags enum
Replaces GrGLSLUniformHandler::ShaderVisibility with GrShaderFlags.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1684063006
Review URL: https://codereview.chromium.org/1684063006
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrTypesPriv.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/gpu/GrTypesPriv.h b/include/gpu/GrTypesPriv.h index 4026eb7874..4646abdd7d 100644 --- a/include/gpu/GrTypesPriv.h +++ b/include/gpu/GrTypesPriv.h @@ -44,6 +44,14 @@ enum GrShaderType { }; static const int kGrShaderTypeCount = kLastkFragment_GrShaderType + 1; +enum GrShaderFlags { + kNone_GrShaderFlags = 0, + kVertex_GrShaderFlag = 1 << kVertex_GrShaderType, + kGeometry_GrShaderFlag = 1 << kGeometry_GrShaderType, + kFragment_GrShaderFlag = 1 << kFragment_GrShaderType +}; +GR_MAKE_BITFIELD_OPS(GrShaderFlags); + /** * Precisions of shader language variables. Not all shading languages support precisions or actually * vary the internal precision based on the qualifiers. These currently only apply to float types ( |