mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-30 20:52:11 +01:00
[dxbc] Remove useless lambda
This commit is contained in:
parent
a8b578b2a2
commit
3d6b687e41
@ -7449,7 +7449,6 @@ namespace dxvk {
|
|||||||
bool isUav) const {
|
bool isUav) const {
|
||||||
uint32_t ms = m_moduleInfo.options.disableMsaa ? 0 : 1;
|
uint32_t ms = m_moduleInfo.options.disableMsaa ? 0 : 1;
|
||||||
|
|
||||||
DxbcImageInfo typeInfo = [resourceType, isUav, ms] () -> DxbcImageInfo {
|
|
||||||
switch (resourceType) {
|
switch (resourceType) {
|
||||||
case DxbcResourceDim::Buffer: return { spv::DimBuffer, 0, 0, isUav ? 2u : 1u, VK_IMAGE_VIEW_TYPE_MAX_ENUM };
|
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 };
|
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 };
|
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));
|
default: throw DxvkError(str::format("DxbcCompiler: Unsupported resource type: ", resourceType));
|
||||||
}
|
}
|
||||||
}();
|
|
||||||
|
|
||||||
return typeInfo;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user