HLSL: Force flat (nointerp) onto integer fragment inputs.
Addresses #940.
This commit is contained in:
parent
f02c8e6ba1
commit
54596ff99e
21 changed files with 151 additions and 108 deletions
|
|
@ -1338,7 +1338,23 @@ public:
|
|||
#else
|
||||
virtual bool isFloatingDomain() const { return basicType == EbtFloat || basicType == EbtDouble; }
|
||||
#endif
|
||||
|
||||
virtual bool isIntegerDomain() const
|
||||
{
|
||||
switch (basicType) {
|
||||
case EbtInt:
|
||||
case EbtUint:
|
||||
case EbtInt64:
|
||||
case EbtUint64:
|
||||
#ifdef AMD_EXTENSIONS
|
||||
case EbtInt16:
|
||||
case EbtUint16:
|
||||
#endif
|
||||
case EbtBool:
|
||||
case EbtAtomicUint:
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
virtual bool isOpaque() const { return basicType == EbtSampler || basicType == EbtAtomicUint; }
|
||||
|
||||
// "Image" is a superset of "Subpass"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue