From 54382ae319782403455058592fef7ef15b1e3c29 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Sat, 24 Mar 2018 14:21:13 +0100 Subject: [PATCH] [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. --- src/dxbc/dxbc_compiler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dxbc/dxbc_compiler.cpp b/src/dxbc/dxbc_compiler.cpp index fc9167ad..459f57df 100644 --- a/src/dxbc/dxbc_compiler.cpp +++ b/src/dxbc/dxbc_compiler.cpp @@ -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;