fix zero spirv id

This commit is contained in:
Asuka 2022-07-21 02:12:24 +08:00
parent 3e2034ed1b
commit e643efa965

View file

@ -714,8 +714,7 @@ namespace sce::gcn
tex.colorTypeId = imageTypeId;
tex.depthTypeId = 0;
if (textureInfo.isDepth &&
(sampledType == GcnScalarType::Float32) &&
if ((sampledType == GcnScalarType::Float32) &&
(textureType == Gnm::kTextureType2d ||
textureType == Gnm::kTextureType2dArray ||
textureType == Gnm::kTextureTypeCubemap))