mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Add required metal types
This commit is contained in:
+9
-2
@@ -48,8 +48,9 @@ def no_vk(t):
|
|||||||
return t
|
return t
|
||||||
|
|
||||||
OPAQUE_STRUCTS = """
|
OPAQUE_STRUCTS = """
|
||||||
wl_surface :: struct {} // Opaque struct defined by Wayland
|
wl_surface :: struct {} // Opaque struct defined by Wayland
|
||||||
wl_display :: struct {} // Opaque struct defined by Wayland
|
wl_display :: struct {} // Opaque struct defined by Wayland
|
||||||
|
IOSurfaceRef :: struct {} // Opaque struct defined by Apple’s CoreGraphics framework
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def convert_type(t, prev_name, curr_name):
|
def convert_type(t, prev_name, curr_name):
|
||||||
@@ -766,6 +767,12 @@ when ODIN_OS == .Windows {
|
|||||||
|
|
||||||
CAMetalLayer :: struct {}
|
CAMetalLayer :: struct {}
|
||||||
|
|
||||||
|
MTLBuffer_id :: rawptr
|
||||||
|
MTLTexture_id :: rawptr
|
||||||
|
MTLSharedEvent_id :: rawptr
|
||||||
|
MTLDevice_id :: rawptr
|
||||||
|
MTLCommandQueue_id :: rawptr
|
||||||
|
|
||||||
/********************************/
|
/********************************/
|
||||||
""")
|
""")
|
||||||
f.write("\n")
|
f.write("\n")
|
||||||
|
|||||||
Reference in New Issue
Block a user