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:
parent
19e0829a37
commit
54382ae319
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user