1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 19:24:12 +01:00

[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

View File

@ -767,6 +767,9 @@ namespace dxvk {
// Declare the actual sampled type // Declare the actual sampled type
const DxbcScalarType sampledType = [xType] { const DxbcScalarType sampledType = [xType] {
switch (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::Float: return DxbcScalarType::Float32;
case DxbcResourceReturnType::Sint: return DxbcScalarType::Sint32; case DxbcResourceReturnType::Sint: return DxbcScalarType::Sint32;
case DxbcResourceReturnType::Uint: return DxbcScalarType::Uint32; case DxbcResourceReturnType::Uint: return DxbcScalarType::Uint32;