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

[dxbc] Remove useless lambda

This commit is contained in:
Philip Rebohle 2022-08-22 05:20:49 +02:00
parent a8b578b2a2
commit 3d6b687e41

View File

@ -7449,7 +7449,6 @@ namespace dxvk {
bool isUav) const {
uint32_t ms = m_moduleInfo.options.disableMsaa ? 0 : 1;
DxbcImageInfo typeInfo = [resourceType, isUav, ms] () -> DxbcImageInfo {
switch (resourceType) {
case DxbcResourceDim::Buffer: return { spv::DimBuffer, 0, 0, isUav ? 2u : 1u, VK_IMAGE_VIEW_TYPE_MAX_ENUM };
case DxbcResourceDim::Texture1D: return { spv::Dim1D, 0, 0, isUav ? 2u : 1u, VK_IMAGE_VIEW_TYPE_1D };
@ -7463,9 +7462,6 @@ namespace dxvk {
case DxbcResourceDim::TextureCubeArr: return { spv::DimCube, 1, 0, isUav ? 2u : 1u, VK_IMAGE_VIEW_TYPE_CUBE_ARRAY };
default: throw DxvkError(str::format("DxbcCompiler: Unsupported resource type: ", resourceType));
}
}();
return typeInfo;
}