Remove CompType::Double

* This is a leftover artifact from before we had general extended type support
  and double was the only non-32 bit type we handled. Now we support most type
  formats so doubles are just CompType::Float with 8 byte width
This commit is contained in:
baldurk
2020-07-12 10:52:10 +01:00
parent 6dd09ed2cb
commit 0d026a43d6
23 changed files with 137 additions and 141 deletions
+1 -5
View File
@@ -539,7 +539,7 @@ QString BufferFormatter::GetTextureFormatString(const TextureDescription &tex)
}
else
{
if(tex.format.compType == CompType::Float || tex.format.compType == CompType::Double)
if(tex.format.compType == CompType::Float)
baseType = lit("double");
else if(tex.format.compType == CompType::SInt)
baseType = lit("long");
@@ -1527,10 +1527,6 @@ QVariantList GetVariants(ResourceFormat format, const ShaderVariableDescriptor &
ret.push_back(f / (float)0x0000ffff);
}
}
else if(format.compType == CompType::Double)
{
ret.push_back(readObj<double>(data, end, ok));
}
else
{
// unorm/snorm