[dxbc] Support UNorm/SNorm typed resources

This commit is contained in:
Philip Rebohle 2018-03-21 15:08:53 +01:00
parent 08806070ca
commit 9ef94e28ac
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 3 additions and 0 deletions

View File

@ -767,6 +767,9 @@ namespace dxvk {
// Declare the actual sampled type
const DxbcScalarType sampledType = [xType] {
switch (xType) {
// FIXME do we have to manually clamp writes to SNORM/UNORM resources?
case DxbcResourceReturnType::Snorm: return DxbcScalarType::Float32;
case DxbcResourceReturnType::Unorm: return DxbcScalarType::Float32;
case DxbcResourceReturnType::Float: return DxbcScalarType::Float32;
case DxbcResourceReturnType::Sint: return DxbcScalarType::Sint32;
case DxbcResourceReturnType::Uint: return DxbcScalarType::Uint32;