1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-29 17:52:18 +01:00

[dxbc] Add experimental support for mixed resource types

HLSL tbuffers are translated to resources with a "mixed" format.
There is no documentation about which format the buffers actually
use, so we'll default to UINT and see what happens.
This commit is contained in:
Philip Rebohle 2018-03-24 14:21:13 +01:00
parent 19e0829a37
commit 54382ae319
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -779,6 +779,8 @@ namespace dxvk {
// Declare the actual sampled type
const DxbcScalarType sampledType = [xType] {
switch (xType) {
// FIXME is this correct? There's no documentation about it
case DxbcResourceReturnType::Mixed: return DxbcScalarType::Uint32;
// FIXME do we have to manually clamp writes to SNORM/UNORM resources?
case DxbcResourceReturnType::Snorm: return DxbcScalarType::Float32;
case DxbcResourceReturnType::Unorm: return DxbcScalarType::Float32;