mirror of
https://github.com/par274/sharpemu.git
synced 2026-07-16 00:40:59 +00:00
[revert] Revert VulkanVideoPresenter.cs to previous version, added new screenshot, and updated packages.lock.json
This commit is contained in:
BIN
.github/images/dreaming-sarah.jpg
vendored
BIN
.github/images/dreaming-sarah.jpg
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 142 KiB After Width: | Height: | Size: 120 KiB |
@@ -4,9 +4,9 @@
|
|||||||
"net10.0": {
|
"net10.0": {
|
||||||
"Microsoft.NET.ILLink.Tasks": {
|
"Microsoft.NET.ILLink.Tasks": {
|
||||||
"type": "Direct",
|
"type": "Direct",
|
||||||
"requested": "[10.0.9, )",
|
"requested": "[10.0.3, )",
|
||||||
"resolved": "10.0.9",
|
"resolved": "10.0.3",
|
||||||
"contentHash": "4Iw41e2h7I4t70SJcX2GCmbyKJIlA273Cfm9RJMM050/3VBejGAG1KcthP5Z2L6SQcbfbf6BhNWO26+ZG+GzMg=="
|
"contentHash": "0B6nZyCHWXnvmlB559oduOspVdNOnpNXPjhpWVMovLPAsDVG7A4jJR9rzECf67JUzxP8/ee/wA8clwIzJcWNFA=="
|
||||||
},
|
},
|
||||||
"Avalonia.Angle.Windows.Natives": {
|
"Avalonia.Angle.Windows.Natives": {
|
||||||
"type": "Transitive",
|
"type": "Transitive",
|
||||||
@@ -484,4 +484,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1253,7 +1253,7 @@ internal static unsafe class VulkanVideoPresenter
|
|||||||
var applicationName = (byte*)SilkMarshal.StringToPtr("SharpEmu");
|
var applicationName = (byte*)SilkMarshal.StringToPtr("SharpEmu");
|
||||||
var enableValidation = Environment.GetEnvironmentVariable("SHARPEMU_VK_VALIDATION") == "1";
|
var enableValidation = Environment.GetEnvironmentVariable("SHARPEMU_VK_VALIDATION") == "1";
|
||||||
byte* validationLayerName = null;
|
byte* validationLayerName = null;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var applicationInfo = new ApplicationInfo
|
var applicationInfo = new ApplicationInfo
|
||||||
@@ -1313,7 +1313,7 @@ internal static unsafe class VulkanVideoPresenter
|
|||||||
{
|
{
|
||||||
throw new InvalidOperationException("VK_KHR_surface is unavailable.");
|
throw new InvalidOperationException("VK_KHR_surface is unavailable.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (validationLayerName is not null && _vk.TryGetInstanceExtension(_instance, out ExtDebugUtils debugUtils))
|
if (validationLayerName is not null && _vk.TryGetInstanceExtension(_instance, out ExtDebugUtils debugUtils))
|
||||||
{
|
{
|
||||||
_debugUtils = debugUtils;
|
_debugUtils = debugUtils;
|
||||||
@@ -1383,7 +1383,7 @@ internal static unsafe class VulkanVideoPresenter
|
|||||||
Check(debugUtils.CreateDebugUtilsMessenger(_instance, &messengerInfo, null, out _debugMessenger),
|
Check(debugUtils.CreateDebugUtilsMessenger(_instance, &messengerInfo, null, out _debugMessenger),
|
||||||
"vkCreateDebugUtilsMessengerEXT");
|
"vkCreateDebugUtilsMessengerEXT");
|
||||||
}
|
}
|
||||||
|
|
||||||
private static unsafe uint DebugCallback(
|
private static unsafe uint DebugCallback(
|
||||||
DebugUtilsMessageSeverityFlagsEXT severity,
|
DebugUtilsMessageSeverityFlagsEXT severity,
|
||||||
DebugUtilsMessageTypeFlagsEXT type,
|
DebugUtilsMessageTypeFlagsEXT type,
|
||||||
|
|||||||
Reference in New Issue
Block a user