aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrShaderVar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/GrShaderVar.cpp')
-rw-r--r--src/gpu/GrShaderVar.cpp45
1 files changed, 0 insertions, 45 deletions
diff --git a/src/gpu/GrShaderVar.cpp b/src/gpu/GrShaderVar.cpp
index fcc05c0f7a..4d6c6581a1 100644
--- a/src/gpu/GrShaderVar.cpp
+++ b/src/gpu/GrShaderVar.cpp
@@ -21,51 +21,6 @@ static const char* type_modifier_string(GrShaderVar::TypeModifier t) {
return "";
}
-void GrShaderVar::setImageStorageFormat(GrImageStorageFormat format) {
- const char* formatStr = nullptr;
- switch (format) {
- case GrImageStorageFormat::kRGBA8:
- formatStr = "rgba8";
- break;
- case GrImageStorageFormat::kRGBA8i:
- formatStr = "rgba8i";
- break;
- case GrImageStorageFormat::kRGBA16f:
- formatStr = "rgba16f";
- break;
- case GrImageStorageFormat::kRGBA32f:
- formatStr = "rgba32f";
- break;
- }
- this->addLayoutQualifier(formatStr);
- SkASSERT(formatStr);
-}
-
-void GrShaderVar::setMemoryModel(GrSLMemoryModel model) {
- switch (model) {
- case GrSLMemoryModel::kNone:
- return;
- case GrSLMemoryModel::kCoherent:
- this->addModifier("coherent");
- return;
- case GrSLMemoryModel::kVolatile:
- this->addModifier("volatile");
- return;
- }
- SK_ABORT("Unknown memory model.");
-}
-
-void GrShaderVar::setRestrict(GrSLRestrict restrict) {
- switch (restrict) {
- case GrSLRestrict::kNo:
- return;
- case GrSLRestrict::kYes:
- this->addModifier("restrict");
- return;
- }
- SK_ABORT("Unknown restrict.");
-}
-
void GrShaderVar::setIOType(GrIOType ioType) {
switch (ioType) {
case kRW_GrIOType: