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:
parent
08806070ca
commit
9ef94e28ac
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user