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:
parent
8bfd12067a
commit
a5706254d5
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user