mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-16 14:14:45 +08:00
Hardware MSAA support for deferred render
This commit is contained in:
@@ -63,7 +63,7 @@ namespace CodeWalker.Rendering
|
||||
Usage = Usage.RenderTargetOutput
|
||||
};
|
||||
|
||||
FeatureLevel[] levels = new FeatureLevel[] { FeatureLevel.Level_10_0 };
|
||||
FeatureLevel[] levels = new FeatureLevel[] { FeatureLevel.Level_11_0, FeatureLevel.Level_10_1, FeatureLevel.Level_10_0 };
|
||||
|
||||
DeviceCreationFlags flags = DeviceCreationFlags.None;
|
||||
//#if DEBUG
|
||||
|
||||
@@ -132,6 +132,10 @@ namespace CodeWalker.Rendering
|
||||
srvd.Texture3D.MipLevels = mipLevels;
|
||||
srvd.Texture3D.MostDetailedMip = mostDetailedMip;
|
||||
break;
|
||||
case ShaderResourceViewDimension.Texture2DMultisampled:
|
||||
case ShaderResourceViewDimension.Texture2DMultisampledArray:
|
||||
//nothing to do here
|
||||
break;
|
||||
default:
|
||||
throw new Exception(); //not implemented....
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user