aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl/SkSLSPIRVCodeGenerator.h
diff options
context:
space:
mode:
authorGravatar Ethan Nicholas <ethannicholas@google.com>2017-05-03 11:03:44 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-03 18:45:21 +0000
commit0187ae65845ec1922d7417b3c29dd4596e0c950d (patch)
tree065d60cdcf6742781534514526dae81d6b8e1f03 /src/sksl/SkSLSPIRVCodeGenerator.h
parent581e69865ef5425aa5c9dba173b346dff1ec5652 (diff)
sksl SPIR-V sampledBuffer support
Bug: skia: Change-Id: I9bf936857b61d3bb5a165f7a11e53d25069b53c2 Reviewed-on: https://skia-review.googlesource.com/15192 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'src/sksl/SkSLSPIRVCodeGenerator.h')
-rw-r--r--src/sksl/SkSLSPIRVCodeGenerator.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sksl/SkSLSPIRVCodeGenerator.h b/src/sksl/SkSLSPIRVCodeGenerator.h
index 84a4c1ff6a..a3439059b3 100644
--- a/src/sksl/SkSLSPIRVCodeGenerator.h
+++ b/src/sksl/SkSLSPIRVCodeGenerator.h
@@ -89,8 +89,9 @@ private:
enum SpecialIntrinsic {
kAtan_SpecialIntrinsic,
- kTexture_SpecialIntrinsic,
kSubpassLoad_SpecialIntrinsic,
+ kTexelFetch_SpecialIntrinsic,
+ kTexture_SpecialIntrinsic,
};
void setupIntrinsics();
@@ -101,6 +102,8 @@ private:
SpvId getType(const Type& type, const MemoryLayout& layout);
+ SpvId getImageType(const Type& type);
+
SpvId getFunctionType(const FunctionDeclaration& function);
SpvId getPointerType(const Type& type, SpvStorageClass_ storageClass);
@@ -276,6 +279,7 @@ private:
std::unordered_map<const FunctionDeclaration*, SpvId> fFunctionMap;
std::unordered_map<const Variable*, SpvId> fVariableMap;
std::unordered_map<const Variable*, int32_t> fInterfaceBlockMap;
+ std::unordered_map<String, SpvId> fImageTypeMap;
std::unordered_map<String, SpvId> fTypeMap;
StringStream fCapabilitiesBuffer;
StringStream fGlobalInitializersBuffer;