mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Core - Reworked rendering pipeline to work with different contexts
Core - Added GPU-based Vulkan rendering context
This commit is contained in:
1 parent
34b9d69ed8
commit
a02431bb82
17 files changed
+489
-56
No files matched your search
@@ -83,18 +83,20 @@ namespace Artemis.UI.Screens.Settings.Debug.Tabs
|
||||
{
|
||||
Execute.OnUIThreadSync(() =>
|
||||
{
|
||||
SKImageInfo bitmapInfo = e.Texture.Bitmap.Info;
|
||||
SKImageInfo bitmapInfo = e.Texture.ImageInfo;
|
||||
RenderHeight = bitmapInfo.Height;
|
||||
RenderWidth = bitmapInfo.Width;
|
||||
|
||||
// ReSharper disable twice CompareOfFloatsByEqualityOperator
|
||||
|
||||
|
||||
if (CurrentFrame is not WriteableBitmap writable || writable.Width != bitmapInfo.Width || writable.Height != bitmapInfo.Height)
|
||||
{
|
||||
CurrentFrame = e.Texture.Bitmap.ToWriteableBitmap();
|
||||
CurrentFrame = e.Texture.Surface.Snapshot().ToWriteableBitmap();
|
||||
return;
|
||||
}
|
||||
|
||||
using SKImage skImage = SKImage.FromPixels(e.Texture.Bitmap.PeekPixels());
|
||||
using SKImage skImage = e.Texture.Surface.Snapshot();
|
||||
|
||||
if (_frameTargetPath != null)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user