forked from MeloNX/MeloNX
Merge branch 'XC-ios-ht' into 0-blu-ui-stuff
This commit is contained in:
commit
20547bc412
Binary file not shown.
@ -11,7 +11,7 @@ import UIKit
|
||||
@main
|
||||
struct MeloNXApp: App {
|
||||
|
||||
@AppStorage("showeddrmcheck") var showed = false
|
||||
@AppStorage("showeddrmcheck") var showed = true
|
||||
|
||||
init() {
|
||||
DispatchQueue.main.async { [self] in
|
||||
@ -21,7 +21,7 @@ struct MeloNXApp: App {
|
||||
if bool {
|
||||
print("Yippee")
|
||||
} else {
|
||||
exit(0)
|
||||
// exit(0)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -105,8 +105,8 @@ namespace Ryujinx.Graphics.Vulkan
|
||||
SupportsConditionalRendering = supportsConditionalRendering;
|
||||
SupportsExtendedDynamicState = (OperatingSystem.IsIOS() ? OperatingSystem.IsIOSVersionAtLeast(17) ? supportsExtendedDynamicState : false : supportsExtendedDynamicState);
|
||||
SupportsMultiView = supportsMultiView;
|
||||
SupportsNullDescriptors = (OperatingSystem.IsIOS() ? false : supportsNullDescriptors);
|
||||
SupportsPushDescriptors = (OperatingSystem.IsIOS() ? false : supportsNullDescriptors);
|
||||
SupportsNullDescriptors = supportsNullDescriptors;
|
||||
SupportsPushDescriptors = supportsPushDescriptors;
|
||||
SupportsPrimitiveTopologyListRestart = supportsPrimitiveTopologyListRestart;
|
||||
SupportsPrimitiveTopologyPatchListRestart = supportsPrimitiveTopologyPatchListRestart;
|
||||
SupportsTransformFeedback = supportsTransformFeedback;
|
||||
|
@ -301,6 +301,10 @@ namespace Ryujinx.Graphics.Vulkan
|
||||
properties.Limits.FramebufferDepthSampleCounts &
|
||||
properties.Limits.FramebufferStencilSampleCounts;
|
||||
|
||||
bool isDynamicStateSupported = OperatingSystem.IsIOS()
|
||||
? OperatingSystem.IsIOSVersionAtLeast(17) && _physicalDevice.IsDeviceExtensionPresent(ExtExtendedDynamicState.ExtensionName)
|
||||
: _physicalDevice.IsDeviceExtensionPresent(ExtExtendedDynamicState.ExtensionName);
|
||||
|
||||
Capabilities = new HardwareCapabilities(
|
||||
_physicalDevice.IsDeviceExtensionPresent("VK_EXT_index_type_uint8"),
|
||||
supportsCustomBorderColor,
|
||||
@ -316,7 +320,7 @@ namespace Ryujinx.Graphics.Vulkan
|
||||
_physicalDevice.IsDeviceExtensionPresent("VK_EXT_shader_stencil_export"),
|
||||
features2.Features.ShaderStorageImageMultisample,
|
||||
_physicalDevice.IsDeviceExtensionPresent(ExtConditionalRendering.ExtensionName),
|
||||
_physicalDevice.IsDeviceExtensionPresent(ExtExtendedDynamicState.ExtensionName),
|
||||
isDynamicStateSupported,
|
||||
features2.Features.MultiViewport && !(IsMoltenVk && Vendor == Vendor.Amd), // Workaround for AMD on MoltenVK issue
|
||||
featuresRobustness2.NullDescriptor || !IsMoltenVk,
|
||||
_physicalDevice.IsDeviceExtensionPresent(KhrPushDescriptor.ExtensionName),
|
||||
|
@ -1411,14 +1411,18 @@ public unsafe struct GameInfoNative
|
||||
|
||||
if (imageData == null || imageData.Length > 4096 * 4096)
|
||||
{
|
||||
throw new ArgumentException("Image data must not exceed 4 MB.");
|
||||
// throw new ArgumentException("Image data must not exceed 4 MB.");
|
||||
ImageSize = (uint)0;
|
||||
ImageData = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
ImageSize = (uint)imageData.Length;
|
||||
|
||||
ImageSize = (uint)imageData.Length;
|
||||
ImageData = (byte*)Marshal.AllocHGlobal(imageData.Length);
|
||||
|
||||
ImageData = (byte*)Marshal.AllocHGlobal(imageData.Length);
|
||||
|
||||
Marshal.Copy(imageData, 0, (IntPtr)ImageData, imageData.Length);
|
||||
Marshal.Copy(imageData, 0, (IntPtr)ImageData, imageData.Length);
|
||||
}
|
||||
}
|
||||
|
||||
// Don't forget to free the allocated memory
|
||||
|
Loading…
x
Reference in New Issue
Block a user