00cc9309cb
de6e324bdseparate emu thread10d3daf86Roms List improvements95d202f37Let's make the rom list process on a separate thread so the emulator doesnt take ages to load.fc306967fWow the ROM Header was just completely busted. Game list view works nowbad1691eefuck this shit2b59e5f46game list in progressd26417b83remappable inputs in progressac4af8106inpute72abc240update readme430139dc9Qt6 frontend3080d4d45Fix this small bug too08cd13b85Cop0 unused functions do not actually pose a threat (as per manual). They don't do anything, so shall we.61bb4fb44make idle loop detection a little more specific with where the load goesb037de4c3SAZDFsdff12e81e73eneed to figure out why n64-systemtest loops indefinitely at some address that appears to be valid (i think it's me not invalidating the cache properly)204f0e13bidle skipping seems to work!cb8bb634asdkfjlasdf58e5c89c1Fix compilation issue on my machine (no idea)24fb2898eattempting more serious idle skipping214719577Place rsp.Step inside cached interpreter. Gains about 3 more fpsbb97dcc23mmmmm920b77d38wjkhasdfjhkasdf430ccdab4it's a start...4f42a673aCached interpreter plays Mario 64. Start looking into RSP as wellc9a030787idle skipping works!5fbda03cenew idea366637abaIdle skipping... maybe?609fa2fb0Cache instructions implemented but broken lmao. Commented out for nowe140a6d12- Stop using inheritance for CPU, instead use composition. - Introduce KAIZEN_JIT_ENABLED optional define instead of relying on __aarch64__ and the like. - More cache work68e613057prep cache impl811b4d809fix clang formatfda755f7didkd5024ebbfsmall MI refactor in preparation of (eventually) implementing the RDRAM interface properly694b45341Merge commit '206dcdedf195fb320913584180edb12c7731e396' as 'external/SDL'206dcdedfSquashed 'external/SDL/' content from commit 4d17b99d0a4d16e1cb4need to update sdl848b19920Fix compilation errordb61b5299Merge commit 'e94a94559f28e49678fbcf72199a5258137b0fe9' as 'external/imgui'e94a94559Squashed 'external/imgui/' content from commit 02e9b8cac52edb3757need to update imguic1a705e86Emulate weird JALR behaviour4b4c32f4bFix exception for "unusable COP1" in 4 instructions i missed accidentally (again)df5828142Bug putting 0s in the log everywheref8b580048Make isviewer a sink to file8241e9735Fix exception for "unusable COP1" in 4 instructions i missed accidentallyb29715f20small changesd9a620bc1make use of my new small utility library0d1aa938eAdd 'external/ircolib/' from commit 'ce3cd726c8df8388d554abf8bb55d55020eb4450'e64eb40b3Fuck git git-subtree-dir: external/ircolib git-subtree-split:de6e324bde
196 lines
5.7 KiB
Objective-C
196 lines
5.7 KiB
Objective-C
#ifndef VULKAN_METAL_H_
|
|
#define VULKAN_METAL_H_ 1
|
|
|
|
/*
|
|
** Copyright 2015-2024 The Khronos Group Inc.
|
|
**
|
|
** SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/*
|
|
** This header is generated from the Khronos Vulkan XML API Registry.
|
|
**
|
|
*/
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
|
|
// VK_EXT_metal_surface is a preprocessor guard. Do not pass it to API calls.
|
|
#define VK_EXT_metal_surface 1
|
|
#ifdef __OBJC__
|
|
@class CAMetalLayer;
|
|
#else
|
|
typedef void CAMetalLayer;
|
|
#endif
|
|
|
|
#define VK_EXT_METAL_SURFACE_SPEC_VERSION 1
|
|
#define VK_EXT_METAL_SURFACE_EXTENSION_NAME "VK_EXT_metal_surface"
|
|
typedef VkFlags VkMetalSurfaceCreateFlagsEXT;
|
|
typedef struct VkMetalSurfaceCreateInfoEXT {
|
|
VkStructureType sType;
|
|
const void* pNext;
|
|
VkMetalSurfaceCreateFlagsEXT flags;
|
|
const CAMetalLayer* pLayer;
|
|
} VkMetalSurfaceCreateInfoEXT;
|
|
|
|
typedef VkResult (VKAPI_PTR *PFN_vkCreateMetalSurfaceEXT)(VkInstance instance, const VkMetalSurfaceCreateInfoEXT* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
|
|
|
|
#ifndef VK_NO_PROTOTYPES
|
|
VKAPI_ATTR VkResult VKAPI_CALL vkCreateMetalSurfaceEXT(
|
|
VkInstance instance,
|
|
const VkMetalSurfaceCreateInfoEXT* pCreateInfo,
|
|
const VkAllocationCallbacks* pAllocator,
|
|
VkSurfaceKHR* pSurface);
|
|
#endif
|
|
|
|
|
|
// VK_EXT_metal_objects is a preprocessor guard. Do not pass it to API calls.
|
|
#define VK_EXT_metal_objects 1
|
|
#ifdef __OBJC__
|
|
@protocol MTLDevice;
|
|
typedef id<MTLDevice> MTLDevice_id;
|
|
#else
|
|
typedef void* MTLDevice_id;
|
|
#endif
|
|
|
|
#ifdef __OBJC__
|
|
@protocol MTLCommandQueue;
|
|
typedef id<MTLCommandQueue> MTLCommandQueue_id;
|
|
#else
|
|
typedef void* MTLCommandQueue_id;
|
|
#endif
|
|
|
|
#ifdef __OBJC__
|
|
@protocol MTLBuffer;
|
|
typedef id<MTLBuffer> MTLBuffer_id;
|
|
#else
|
|
typedef void* MTLBuffer_id;
|
|
#endif
|
|
|
|
#ifdef __OBJC__
|
|
@protocol MTLTexture;
|
|
typedef id<MTLTexture> MTLTexture_id;
|
|
#else
|
|
typedef void* MTLTexture_id;
|
|
#endif
|
|
|
|
typedef struct __IOSurface* IOSurfaceRef;
|
|
#ifdef __OBJC__
|
|
@protocol MTLSharedEvent;
|
|
typedef id<MTLSharedEvent> MTLSharedEvent_id;
|
|
#else
|
|
typedef void* MTLSharedEvent_id;
|
|
#endif
|
|
|
|
#define VK_EXT_METAL_OBJECTS_SPEC_VERSION 1
|
|
#define VK_EXT_METAL_OBJECTS_EXTENSION_NAME "VK_EXT_metal_objects"
|
|
|
|
typedef enum VkExportMetalObjectTypeFlagBitsEXT {
|
|
VK_EXPORT_METAL_OBJECT_TYPE_METAL_DEVICE_BIT_EXT = 0x00000001,
|
|
VK_EXPORT_METAL_OBJECT_TYPE_METAL_COMMAND_QUEUE_BIT_EXT = 0x00000002,
|
|
VK_EXPORT_METAL_OBJECT_TYPE_METAL_BUFFER_BIT_EXT = 0x00000004,
|
|
VK_EXPORT_METAL_OBJECT_TYPE_METAL_TEXTURE_BIT_EXT = 0x00000008,
|
|
VK_EXPORT_METAL_OBJECT_TYPE_METAL_IOSURFACE_BIT_EXT = 0x00000010,
|
|
VK_EXPORT_METAL_OBJECT_TYPE_METAL_SHARED_EVENT_BIT_EXT = 0x00000020,
|
|
VK_EXPORT_METAL_OBJECT_TYPE_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
|
|
} VkExportMetalObjectTypeFlagBitsEXT;
|
|
typedef VkFlags VkExportMetalObjectTypeFlagsEXT;
|
|
typedef struct VkExportMetalObjectCreateInfoEXT {
|
|
VkStructureType sType;
|
|
const void* pNext;
|
|
VkExportMetalObjectTypeFlagBitsEXT exportObjectType;
|
|
} VkExportMetalObjectCreateInfoEXT;
|
|
|
|
typedef struct VkExportMetalObjectsInfoEXT {
|
|
VkStructureType sType;
|
|
const void* pNext;
|
|
} VkExportMetalObjectsInfoEXT;
|
|
|
|
typedef struct VkExportMetalDeviceInfoEXT {
|
|
VkStructureType sType;
|
|
const void* pNext;
|
|
MTLDevice_id mtlDevice;
|
|
} VkExportMetalDeviceInfoEXT;
|
|
|
|
typedef struct VkExportMetalCommandQueueInfoEXT {
|
|
VkStructureType sType;
|
|
const void* pNext;
|
|
VkQueue queue;
|
|
MTLCommandQueue_id mtlCommandQueue;
|
|
} VkExportMetalCommandQueueInfoEXT;
|
|
|
|
typedef struct VkExportMetalBufferInfoEXT {
|
|
VkStructureType sType;
|
|
const void* pNext;
|
|
VkDeviceMemory memory;
|
|
MTLBuffer_id mtlBuffer;
|
|
} VkExportMetalBufferInfoEXT;
|
|
|
|
typedef struct VkImportMetalBufferInfoEXT {
|
|
VkStructureType sType;
|
|
const void* pNext;
|
|
MTLBuffer_id mtlBuffer;
|
|
} VkImportMetalBufferInfoEXT;
|
|
|
|
typedef struct VkExportMetalTextureInfoEXT {
|
|
VkStructureType sType;
|
|
const void* pNext;
|
|
VkImage image;
|
|
VkImageView imageView;
|
|
VkBufferView bufferView;
|
|
VkImageAspectFlagBits plane;
|
|
MTLTexture_id mtlTexture;
|
|
} VkExportMetalTextureInfoEXT;
|
|
|
|
typedef struct VkImportMetalTextureInfoEXT {
|
|
VkStructureType sType;
|
|
const void* pNext;
|
|
VkImageAspectFlagBits plane;
|
|
MTLTexture_id mtlTexture;
|
|
} VkImportMetalTextureInfoEXT;
|
|
|
|
typedef struct VkExportMetalIOSurfaceInfoEXT {
|
|
VkStructureType sType;
|
|
const void* pNext;
|
|
VkImage image;
|
|
IOSurfaceRef ioSurface;
|
|
} VkExportMetalIOSurfaceInfoEXT;
|
|
|
|
typedef struct VkImportMetalIOSurfaceInfoEXT {
|
|
VkStructureType sType;
|
|
const void* pNext;
|
|
IOSurfaceRef ioSurface;
|
|
} VkImportMetalIOSurfaceInfoEXT;
|
|
|
|
typedef struct VkExportMetalSharedEventInfoEXT {
|
|
VkStructureType sType;
|
|
const void* pNext;
|
|
VkSemaphore semaphore;
|
|
VkEvent event;
|
|
MTLSharedEvent_id mtlSharedEvent;
|
|
} VkExportMetalSharedEventInfoEXT;
|
|
|
|
typedef struct VkImportMetalSharedEventInfoEXT {
|
|
VkStructureType sType;
|
|
const void* pNext;
|
|
MTLSharedEvent_id mtlSharedEvent;
|
|
} VkImportMetalSharedEventInfoEXT;
|
|
|
|
typedef void (VKAPI_PTR *PFN_vkExportMetalObjectsEXT)(VkDevice device, VkExportMetalObjectsInfoEXT* pMetalObjectsInfo);
|
|
|
|
#ifndef VK_NO_PROTOTYPES
|
|
VKAPI_ATTR void VKAPI_CALL vkExportMetalObjectsEXT(
|
|
VkDevice device,
|
|
VkExportMetalObjectsInfoEXT* pMetalObjectsInfo);
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|