Repository navigation
KARL Release Framework 4.7.2
Keep Alive Render Loop - Using framework 4.7.2
I am releasing a version based on .NET Framework 4.7.2 as users are reporting issues installing .NET 8 runtime.
This is known to be an issue sometimes.
post
Code changes
There are only a few code changes, nothing that impacts the performance of the application.
Manually creating viewport as there seems to be an incompatibility with using the Viewpoint as in .net 8 and SharpDX with 4.7.2
' Create depth buffer
Dim depthBuffer = New Texture2D(device, New Texture2DDescription() With {
.Width = 64,
.Height = 64,
.MipLevels = 1,
.ArraySize = 1,
.Format = Format.D16_UNorm,
.SampleDescription = New SampleDescription(1, 0),
.Usage = ResourceUsage.Default,
.BindFlags = BindFlags.DepthStencil
})
Dim depthView = New DepthStencilView(device, depthBuffer)
Dim viewports() As SharpDX.Mathematics.Interop.RawViewportF = {
New SharpDX.Mathematics.Interop.RawViewportF() With {
.X = 0,
.Y = 0,
.Width = 64,
.Height = 64,
.MinDepth = 0.0F,
.MaxDepth = 1.0F
}} device.ImmediateContext.Rasterizer.SetViewports(viewports)