aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl/SkSLContext.h
diff options
context:
space:
mode:
authorGravatar Ethan Nicholas <ethannicholas@google.com>2017-07-28 15:19:46 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-07-28 20:43:03 +0000
commit5af9ea399d5e0344cc4b7da4e97b5dc5b3c74f64 (patch)
treedf906a3af0b954b130340589f24d128ce655bb01 /src/sksl/SkSLContext.h
parent0edfbb78244739cb6e695f240edb7f659a543160 (diff)
renamed SkSL types in preparation for killing precision modifiers
Bug: skia: Change-Id: Iff0289e25355a89cdc289a0892ed755dd1b1c900 Reviewed-on: https://skia-review.googlesource.com/27703 Commit-Queue: Ethan Nicholas <ethannicholas@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/sksl/SkSLContext.h')
-rw-r--r--src/sksl/SkSLContext.h200
1 files changed, 100 insertions, 100 deletions
diff --git a/src/sksl/SkSLContext.h b/src/sksl/SkSLContext.h
index 1155af4817..2de584fab2 100644
--- a/src/sksl/SkSLContext.h
+++ b/src/sksl/SkSLContext.h
@@ -22,44 +22,44 @@ public:
: fInvalid_Type(new Type(String("<INVALID>")))
, fVoid_Type(new Type(String("void")))
, fDouble_Type(new Type(String("double"), true))
- , fDVec2_Type(new Type(String("dvec2"), *fDouble_Type, 2))
- , fDVec3_Type(new Type(String("dvec3"), *fDouble_Type, 3))
- , fDVec4_Type(new Type(String("dvec4"), *fDouble_Type, 4))
+ , fDouble2_Type(new Type(String("double2"), *fDouble_Type, 2))
+ , fDouble3_Type(new Type(String("double3"), *fDouble_Type, 3))
+ , fDouble4_Type(new Type(String("double4"), *fDouble_Type, 4))
, fFloat_Type(new Type(String("float"), true, { fDouble_Type.get() }))
- , fVec2_Type(new Type(String("vec2"), *fFloat_Type, 2))
- , fVec3_Type(new Type(String("vec3"), *fFloat_Type, 3))
- , fVec4_Type(new Type(String("vec4"), *fFloat_Type, 4))
+ , fFloat2_Type(new Type(String("float2"), *fFloat_Type, 2))
+ , fFloat3_Type(new Type(String("float3"), *fFloat_Type, 3))
+ , fFloat4_Type(new Type(String("float4"), *fFloat_Type, 4))
, fUInt_Type(new Type(String("uint"), true, { fFloat_Type.get(), fDouble_Type.get() }))
- , fUVec2_Type(new Type(String("uvec2"), *fUInt_Type, 2))
- , fUVec3_Type(new Type(String("uvec3"), *fUInt_Type, 3))
- , fUVec4_Type(new Type(String("uvec4"), *fUInt_Type, 4))
+ , fUInt2_Type(new Type(String("uint2"), *fUInt_Type, 2))
+ , fUInt3_Type(new Type(String("uint3"), *fUInt_Type, 3))
+ , fUInt4_Type(new Type(String("uint4"), *fUInt_Type, 4))
, fInt_Type(new Type(String("int"), true, { fUInt_Type.get(), fFloat_Type.get(),
fDouble_Type.get() }))
- , fIVec2_Type(new Type(String("ivec2"), *fInt_Type, 2))
- , fIVec3_Type(new Type(String("ivec3"), *fInt_Type, 3))
- , fIVec4_Type(new Type(String("ivec4"), *fInt_Type, 4))
+ , fInt2_Type(new Type(String("int2"), *fInt_Type, 2))
+ , fInt3_Type(new Type(String("int3"), *fInt_Type, 3))
+ , fInt4_Type(new Type(String("int4"), *fInt_Type, 4))
, fBool_Type(new Type(String("bool"), false))
- , fBVec2_Type(new Type(String("bvec2"), *fBool_Type, 2))
- , fBVec3_Type(new Type(String("bvec3"), *fBool_Type, 3))
- , fBVec4_Type(new Type(String("bvec4"), *fBool_Type, 4))
- , fMat2x2_Type(new Type(String("mat2"), *fFloat_Type, 2, 2))
- , fMat2x3_Type(new Type(String("mat2x3"), *fFloat_Type, 2, 3))
- , fMat2x4_Type(new Type(String("mat2x4"), *fFloat_Type, 2, 4))
- , fMat3x2_Type(new Type(String("mat3x2"), *fFloat_Type, 3, 2))
- , fMat3x3_Type(new Type(String("mat3"), *fFloat_Type, 3, 3))
- , fMat3x4_Type(new Type(String("mat3x4"), *fFloat_Type, 3, 4))
- , fMat4x2_Type(new Type(String("mat4x2"), *fFloat_Type, 4, 2))
- , fMat4x3_Type(new Type(String("mat4x3"), *fFloat_Type, 4, 3))
- , fMat4x4_Type(new Type(String("mat4"), *fFloat_Type, 4, 4))
- , fDMat2x2_Type(new Type(String("dmat2"), *fFloat_Type, 2, 2))
- , fDMat2x3_Type(new Type(String("dmat2x3"), *fFloat_Type, 2, 3))
- , fDMat2x4_Type(new Type(String("dmat2x4"), *fFloat_Type, 2, 4))
- , fDMat3x2_Type(new Type(String("dmat3x2"), *fFloat_Type, 3, 2))
- , fDMat3x3_Type(new Type(String("dmat3"), *fFloat_Type, 3, 3))
- , fDMat3x4_Type(new Type(String("dmat3x4"), *fFloat_Type, 3, 4))
- , fDMat4x2_Type(new Type(String("dmat4x2"), *fFloat_Type, 4, 2))
- , fDMat4x3_Type(new Type(String("dmat4x3"), *fFloat_Type, 4, 3))
- , fDMat4x4_Type(new Type(String("dmat4"), *fFloat_Type, 4, 4))
+ , fBool2_Type(new Type(String("bool2"), *fBool_Type, 2))
+ , fBool3_Type(new Type(String("bool3"), *fBool_Type, 3))
+ , fBool4_Type(new Type(String("bool4"), *fBool_Type, 4))
+ , fFloat2x2_Type(new Type(String("float2x2"), *fFloat_Type, 2, 2))
+ , fFloat2x3_Type(new Type(String("float2x3"), *fFloat_Type, 2, 3))
+ , fFloat2x4_Type(new Type(String("float2x4"), *fFloat_Type, 2, 4))
+ , fFloat3x2_Type(new Type(String("float3x2"), *fFloat_Type, 3, 2))
+ , fFloat3x3_Type(new Type(String("float3x3"), *fFloat_Type, 3, 3))
+ , fFloat3x4_Type(new Type(String("float3x4"), *fFloat_Type, 3, 4))
+ , fFloat4x2_Type(new Type(String("float4x2"), *fFloat_Type, 4, 2))
+ , fFloat4x3_Type(new Type(String("float4x3"), *fFloat_Type, 4, 3))
+ , fFloat4x4_Type(new Type(String("float4x4"), *fFloat_Type, 4, 4))
+ , fDouble2x2_Type(new Type(String("double2x2"), *fFloat_Type, 2, 2))
+ , fDouble2x3_Type(new Type(String("double2x3"), *fFloat_Type, 2, 3))
+ , fDouble2x4_Type(new Type(String("double2x4"), *fFloat_Type, 2, 4))
+ , fDouble3x2_Type(new Type(String("double3x2"), *fFloat_Type, 3, 2))
+ , fDouble3x3_Type(new Type(String("double3x3"), *fFloat_Type, 3, 3))
+ , fDouble3x4_Type(new Type(String("double3x4"), *fFloat_Type, 3, 4))
+ , fDouble4x2_Type(new Type(String("double4x2"), *fFloat_Type, 4, 2))
+ , fDouble4x3_Type(new Type(String("double4x3"), *fFloat_Type, 4, 3))
+ , fDouble4x4_Type(new Type(String("double4x4"), *fFloat_Type, 4, 4))
, fSampler1D_Type(new Type(String("sampler1D"), SpvDim1D, false, false, false, true))
, fSampler2D_Type(new Type(String("sampler2D"), SpvDim2D, false, false, false, true))
, fSampler3D_Type(new Type(String("sampler3D"), SpvDim3D, false, false, false, true))
@@ -116,39 +116,39 @@ public:
static_type(*fSampler2DArrayShadow_Type)))
, fGSamplerCubeArrayShadow_Type(new Type(String("$gsamplerCubeArrayShadow"),
static_type(*fSamplerCubeArrayShadow_Type)))
- , fGenType_Type(new Type(String("$genType"), { fFloat_Type.get(), fVec2_Type.get(),
- fVec3_Type.get(), fVec4_Type.get() }))
- , fGenDType_Type(new Type(String("$genDType"), { fDouble_Type.get(), fDVec2_Type.get(),
- fDVec3_Type.get(), fDVec4_Type.get() }))
- , fGenIType_Type(new Type(String("$genIType"), { fInt_Type.get(), fIVec2_Type.get(),
- fIVec3_Type.get(), fIVec4_Type.get() }))
- , fGenUType_Type(new Type(String("$genUType"), { fUInt_Type.get(), fUVec2_Type.get(),
- fUVec3_Type.get(), fUVec4_Type.get() }))
- , fGenBType_Type(new Type(String("$genBType"), { fBool_Type.get(), fBVec2_Type.get(),
- fBVec3_Type.get(), fBVec4_Type.get() }))
- , fMat_Type(new Type(String("$mat"), { fMat2x2_Type.get(), fMat2x3_Type.get(),
- fMat2x4_Type.get(), fMat3x2_Type.get(),
- fMat3x3_Type.get(), fMat3x4_Type.get(),
- fMat4x2_Type.get(), fMat4x3_Type.get(),
- fMat4x4_Type.get(), fDMat2x2_Type.get(),
- fDMat2x3_Type.get(), fDMat2x4_Type.get(),
- fDMat3x2_Type.get(), fDMat3x3_Type.get(),
- fDMat3x4_Type.get(), fDMat4x2_Type.get(),
- fDMat4x3_Type.get(), fDMat4x4_Type.get() }))
- , fVec_Type(new Type(String("$vec"), { fInvalid_Type.get(), fVec2_Type.get(),
- fVec3_Type.get(), fVec4_Type.get() }))
+ , fGenType_Type(new Type(String("$genType"), { fFloat_Type.get(), fFloat2_Type.get(),
+ fFloat3_Type.get(), fFloat4_Type.get() }))
+ , fGenDType_Type(new Type(String("$genDType"), { fDouble_Type.get(), fDouble2_Type.get(),
+ fDouble3_Type.get(), fDouble4_Type.get() }))
+ , fGenIType_Type(new Type(String("$genIType"), { fInt_Type.get(), fInt2_Type.get(),
+ fInt3_Type.get(), fInt4_Type.get() }))
+ , fGenUType_Type(new Type(String("$genUType"), { fUInt_Type.get(), fUInt2_Type.get(),
+ fUInt3_Type.get(), fUInt4_Type.get() }))
+ , fGenBType_Type(new Type(String("$genBType"), { fBool_Type.get(), fBool2_Type.get(),
+ fBool3_Type.get(), fBool4_Type.get() }))
+ , fMat_Type(new Type(String("$mat"), { fFloat2x2_Type.get(), fFloat2x3_Type.get(),
+ fFloat2x4_Type.get(), fFloat3x2_Type.get(),
+ fFloat3x3_Type.get(), fFloat3x4_Type.get(),
+ fFloat4x2_Type.get(), fFloat4x3_Type.get(),
+ fFloat4x4_Type.get(), fDouble2x2_Type.get(),
+ fDouble2x3_Type.get(), fDouble2x4_Type.get(),
+ fDouble3x2_Type.get(), fDouble3x3_Type.get(),
+ fDouble3x4_Type.get(), fDouble4x2_Type.get(),
+ fDouble4x3_Type.get(), fDouble4x4_Type.get() }))
+ , fVec_Type(new Type(String("$vec"), { fInvalid_Type.get(), fFloat2_Type.get(),
+ fFloat3_Type.get(), fFloat4_Type.get() }))
, fGVec_Type(new Type(String("$gvec")))
- , fGVec2_Type(new Type(String("$gvec2")))
- , fGVec3_Type(new Type(String("$gvec3")))
- , fGVec4_Type(new Type(String("$gvec4"), static_type(*fVec4_Type)))
- , fDVec_Type(new Type(String("$dvec"), { fInvalid_Type.get(), fDVec2_Type.get(),
- fDVec3_Type.get(), fDVec4_Type.get() }))
- , fIVec_Type(new Type(String("$ivec"), { fInvalid_Type.get(), fIVec2_Type.get(),
- fIVec3_Type.get(), fIVec4_Type.get() }))
- , fUVec_Type(new Type(String("$uvec"), { fInvalid_Type.get(), fUVec2_Type.get(),
- fUVec3_Type.get(), fUVec4_Type.get() }))
- , fBVec_Type(new Type(String("$bvec"), { fInvalid_Type.get(), fBVec2_Type.get(),
- fBVec3_Type.get(), fBVec4_Type.get() }))
+ , fGVec2_Type(new Type(String("$gfloat2")))
+ , fGVec3_Type(new Type(String("$gfloat3")))
+ , fGVec4_Type(new Type(String("$gfloat4"), static_type(*fFloat4_Type)))
+ , fDVec_Type(new Type(String("$dvec"), { fInvalid_Type.get(), fDouble2_Type.get(),
+ fDouble3_Type.get(), fDouble4_Type.get() }))
+ , fIVec_Type(new Type(String("$ivec"), { fInvalid_Type.get(), fInt2_Type.get(),
+ fInt3_Type.get(), fInt4_Type.get() }))
+ , fUVec_Type(new Type(String("$uvec"), { fInvalid_Type.get(), fUInt2_Type.get(),
+ fUInt3_Type.get(), fUInt4_Type.get() }))
+ , fBVec_Type(new Type(String("$bvec"), { fInvalid_Type.get(), fBool2_Type.get(),
+ fBool3_Type.get(), fBool4_Type.get() }))
, fSkCaps_Type(new Type(String("$sk_Caps")))
, fSkArgs_Type(new Type(String("$sk_Args")))
, fColorSpaceXform_Type(new Type(String("colorSpaceXform"), *fFloat_Type, 4, 4))
@@ -162,49 +162,49 @@ public:
const std::unique_ptr<Type> fVoid_Type;
const std::unique_ptr<Type> fDouble_Type;
- const std::unique_ptr<Type> fDVec2_Type;
- const std::unique_ptr<Type> fDVec3_Type;
- const std::unique_ptr<Type> fDVec4_Type;
+ const std::unique_ptr<Type> fDouble2_Type;
+ const std::unique_ptr<Type> fDouble3_Type;
+ const std::unique_ptr<Type> fDouble4_Type;
const std::unique_ptr<Type> fFloat_Type;
- const std::unique_ptr<Type> fVec2_Type;
- const std::unique_ptr<Type> fVec3_Type;
- const std::unique_ptr<Type> fVec4_Type;
+ const std::unique_ptr<Type> fFloat2_Type;
+ const std::unique_ptr<Type> fFloat3_Type;
+ const std::unique_ptr<Type> fFloat4_Type;
const std::unique_ptr<Type> fUInt_Type;
- const std::unique_ptr<Type> fUVec2_Type;
- const std::unique_ptr<Type> fUVec3_Type;
- const std::unique_ptr<Type> fUVec4_Type;
+ const std::unique_ptr<Type> fUInt2_Type;
+ const std::unique_ptr<Type> fUInt3_Type;
+ const std::unique_ptr<Type> fUInt4_Type;
const std::unique_ptr<Type> fInt_Type;
- const std::unique_ptr<Type> fIVec2_Type;
- const std::unique_ptr<Type> fIVec3_Type;
- const std::unique_ptr<Type> fIVec4_Type;
+ const std::unique_ptr<Type> fInt2_Type;
+ const std::unique_ptr<Type> fInt3_Type;
+ const std::unique_ptr<Type> fInt4_Type;
const std::unique_ptr<Type> fBool_Type;
- const std::unique_ptr<Type> fBVec2_Type;
- const std::unique_ptr<Type> fBVec3_Type;
- const std::unique_ptr<Type> fBVec4_Type;
-
- const std::unique_ptr<Type> fMat2x2_Type;
- const std::unique_ptr<Type> fMat2x3_Type;
- const std::unique_ptr<Type> fMat2x4_Type;
- const std::unique_ptr<Type> fMat3x2_Type;
- const std::unique_ptr<Type> fMat3x3_Type;
- const std::unique_ptr<Type> fMat3x4_Type;
- const std::unique_ptr<Type> fMat4x2_Type;
- const std::unique_ptr<Type> fMat4x3_Type;
- const std::unique_ptr<Type> fMat4x4_Type;
-
- const std::unique_ptr<Type> fDMat2x2_Type;
- const std::unique_ptr<Type> fDMat2x3_Type;
- const std::unique_ptr<Type> fDMat2x4_Type;
- const std::unique_ptr<Type> fDMat3x2_Type;
- const std::unique_ptr<Type> fDMat3x3_Type;
- const std::unique_ptr<Type> fDMat3x4_Type;
- const std::unique_ptr<Type> fDMat4x2_Type;
- const std::unique_ptr<Type> fDMat4x3_Type;
- const std::unique_ptr<Type> fDMat4x4_Type;
+ const std::unique_ptr<Type> fBool2_Type;
+ const std::unique_ptr<Type> fBool3_Type;
+ const std::unique_ptr<Type> fBool4_Type;
+
+ const std::unique_ptr<Type> fFloat2x2_Type;
+ const std::unique_ptr<Type> fFloat2x3_Type;
+ const std::unique_ptr<Type> fFloat2x4_Type;
+ const std::unique_ptr<Type> fFloat3x2_Type;
+ const std::unique_ptr<Type> fFloat3x3_Type;
+ const std::unique_ptr<Type> fFloat3x4_Type;
+ const std::unique_ptr<Type> fFloat4x2_Type;
+ const std::unique_ptr<Type> fFloat4x3_Type;
+ const std::unique_ptr<Type> fFloat4x4_Type;
+
+ const std::unique_ptr<Type> fDouble2x2_Type;
+ const std::unique_ptr<Type> fDouble2x3_Type;
+ const std::unique_ptr<Type> fDouble2x4_Type;
+ const std::unique_ptr<Type> fDouble3x2_Type;
+ const std::unique_ptr<Type> fDouble3x3_Type;
+ const std::unique_ptr<Type> fDouble3x4_Type;
+ const std::unique_ptr<Type> fDouble4x2_Type;
+ const std::unique_ptr<Type> fDouble4x3_Type;
+ const std::unique_ptr<Type> fDouble4x4_Type;
const std::unique_ptr<Type> fSampler1D_Type;
const std::unique_ptr<Type> fSampler2D_Type;