aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/private/GrTypesPriv.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/private/GrTypesPriv.h')
-rw-r--r--include/private/GrTypesPriv.h65
1 files changed, 0 insertions, 65 deletions
diff --git a/include/private/GrTypesPriv.h b/include/private/GrTypesPriv.h
index 47820f2db0..ecd95574f2 100644
--- a/include/private/GrTypesPriv.h
+++ b/include/private/GrTypesPriv.h
@@ -328,8 +328,6 @@ enum GrSLType {
kTexture2DSampler_GrSLType,
kTextureExternalSampler_GrSLType,
kTexture2DRectSampler_GrSLType,
- kTexture2D_GrSLType,
- kSampler_GrSLType,
};
enum GrShaderType {
@@ -417,8 +415,6 @@ static inline bool GrSLTypeIsFloatType(GrSLType type) {
case kInt4_GrSLType:
case kUint_GrSLType:
case kUint2_GrSLType:
- case kTexture2D_GrSLType:
- case kSampler_GrSLType:
return false;
}
SK_ABORT("Unexpected type");
@@ -477,67 +473,12 @@ static inline int GrSLTypeVecLength(GrSLType type) {
case kTexture2DSampler_GrSLType:
case kTextureExternalSampler_GrSLType:
case kTexture2DRectSampler_GrSLType:
- case kTexture2D_GrSLType:
- case kSampler_GrSLType:
return -1;
}
SK_ABORT("Unexpected type");
return -1;
}
-static inline bool GrSLTypeIs2DCombinedSamplerType(GrSLType type) {
- switch (type) {
- case kTexture2DSampler_GrSLType:
- case kTextureExternalSampler_GrSLType:
- case kTexture2DRectSampler_GrSLType:
- return true;
-
- case kVoid_GrSLType:
- case kFloat_GrSLType:
- case kFloat2_GrSLType:
- case kFloat3_GrSLType:
- case kFloat4_GrSLType:
- case kFloat2x2_GrSLType:
- case kFloat3x3_GrSLType:
- case kFloat4x4_GrSLType:
- case kHalf_GrSLType:
- case kHalf2_GrSLType:
- case kHalf3_GrSLType:
- case kHalf4_GrSLType:
- case kHalf2x2_GrSLType:
- case kHalf3x3_GrSLType:
- case kHalf4x4_GrSLType:
- case kInt_GrSLType:
- case kInt2_GrSLType:
- case kInt3_GrSLType:
- case kInt4_GrSLType:
- case kUint_GrSLType:
- case kUint2_GrSLType:
- case kBool_GrSLType:
- case kByte_GrSLType:
- case kByte2_GrSLType:
- case kByte3_GrSLType:
- case kByte4_GrSLType:
- case kUByte_GrSLType:
- case kUByte2_GrSLType:
- case kUByte3_GrSLType:
- case kUByte4_GrSLType:
- case kShort_GrSLType:
- case kShort2_GrSLType:
- case kShort3_GrSLType:
- case kShort4_GrSLType:
- case kUShort_GrSLType:
- case kUShort2_GrSLType:
- case kUShort3_GrSLType:
- case kUShort4_GrSLType:
- case kTexture2D_GrSLType:
- case kSampler_GrSLType:
- return false;
- }
- SK_ABORT("Unexpected type");
- return false;
-}
-
static inline bool GrSLTypeIsCombinedSamplerType(GrSLType type) {
switch (type) {
case kTexture2DSampler_GrSLType:
@@ -583,8 +524,6 @@ static inline bool GrSLTypeIsCombinedSamplerType(GrSLType type) {
case kUShort2_GrSLType:
case kUShort3_GrSLType:
case kUShort4_GrSLType:
- case kTexture2D_GrSLType:
- case kSampler_GrSLType:
return false;
}
SK_ABORT("Unexpected type");
@@ -596,8 +535,6 @@ static inline bool GrSLTypeAcceptsPrecision(GrSLType type) {
case kTexture2DSampler_GrSLType:
case kTextureExternalSampler_GrSLType:
case kTexture2DRectSampler_GrSLType:
- case kTexture2D_GrSLType:
- case kSampler_GrSLType:
return true;
case kVoid_GrSLType:
@@ -673,8 +610,6 @@ static inline bool GrSLTypeTemporarilyAcceptsPrecision(GrSLType type) {
case kTexture2DSampler_GrSLType:
case kTextureExternalSampler_GrSLType:
case kTexture2DRectSampler_GrSLType:
- case kTexture2D_GrSLType:
- case kSampler_GrSLType:
return true;
case kVoid_GrSLType: