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

[dxbc] Do not emit depth image types for integer images

This commit is contained in:
Philip Rebohle 2018-02-28 06:51:13 +01:00
parent 8bfd12067a
commit a5706254d5
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -812,10 +812,11 @@ namespace dxvk {
res.depthTypeId = 0;
res.structStride = 0;
if (resourceType == DxbcResourceDim::Texture2D
|| resourceType == DxbcResourceDim::Texture2DArr
|| resourceType == DxbcResourceDim::TextureCube
|| resourceType == DxbcResourceDim::TextureCubeArr) {
if ((sampledType == DxbcScalarType::Float32)
&& (resourceType == DxbcResourceDim::Texture2D
|| resourceType == DxbcResourceDim::Texture2DArr
|| resourceType == DxbcResourceDim::TextureCube
|| resourceType == DxbcResourceDim::TextureCubeArr)) {
res.depthTypeId = m_module.defImageType(sampledTypeId,
typeInfo.dim, 1, typeInfo.array, typeInfo.ms, typeInfo.sampled,
spv::ImageFormatUnknown);