Add more proc groups

This commit is contained in:
gingerBill
2022-04-15 11:20:42 +01:00
parent 9a2d9002e6
commit cfeb16f917
+52 -13
View File
@@ -1152,6 +1152,12 @@ CaptureManager_newCaptureScopeWithCommandQueue :: #force_inline proc(self: ^Capt
CaptureManager_newCaptureScopeWithDevice :: #force_inline proc(self: ^CaptureManager, device: ^Device) -> ^CaptureScope { CaptureManager_newCaptureScopeWithDevice :: #force_inline proc(self: ^CaptureManager, device: ^Device) -> ^CaptureScope {
return msgSend(^CaptureScope, self, "newCaptureScopeWithDevice:", device) return msgSend(^CaptureScope, self, "newCaptureScopeWithDevice:", device)
} }
@(objc_type=CaptureManager, objc_name="newCaptureScope")
CaptureManager_newCaptureScope :: proc{
CaptureManager_newCaptureScopeWithCommandQueue,
CaptureManager_newCaptureScopeWithDevice,
}
@(objc_type=CaptureManager, objc_name="setDefaultCaptureScope") @(objc_type=CaptureManager, objc_name="setDefaultCaptureScope")
CaptureManager_setDefaultCaptureScope :: #force_inline proc(self: ^CaptureManager, defaultCaptureScope: ^CaptureScope) { CaptureManager_setDefaultCaptureScope :: #force_inline proc(self: ^CaptureManager, defaultCaptureScope: ^CaptureScope) {
msgSend(nil, self, "setDefaultCaptureScope:", defaultCaptureScope) msgSend(nil, self, "setDefaultCaptureScope:", defaultCaptureScope)
@@ -6670,22 +6676,34 @@ Device_newSharedEvent :: #force_inline proc(self: ^Device) -> ^SharedEvent {
Device_newSharedEventWithHandle :: #force_inline proc(self: ^Device, sharedEventHandle: ^SharedEventHandle) -> ^SharedEvent { Device_newSharedEventWithHandle :: #force_inline proc(self: ^Device, sharedEventHandle: ^SharedEventHandle) -> ^SharedEvent {
return msgSend(^SharedEvent, self, "newSharedEventWithHandle:", sharedEventHandle) return msgSend(^SharedEvent, self, "newSharedEventWithHandle:", sharedEventHandle)
} }
@(objc_type=Device, objc_name="newSharedTexture") @(objc_type=Device, objc_name="newSharedTextureWithDescriptor")
Device_newSharedTexture :: #force_inline proc(self: ^Device, descriptor: ^TextureDescriptor) -> ^SharedEvent { Device_newSharedTextureWithDescriptor :: #force_inline proc(self: ^Device, descriptor: ^TextureDescriptor) -> ^SharedEvent {
return msgSend(^SharedEvent, self, "newSharedTextureWithDescriptor:", descriptor) return msgSend(^SharedEvent, self, "newSharedTextureWithDescriptor:", descriptor)
} }
@(objc_type=Device, objc_name="newSharedTextureWithHandle") @(objc_type=Device, objc_name="newSharedTextureWithHandle")
Device_newSharedTextureWithHandle :: #force_inline proc(self: ^Device, sharedHandle: ^SharedTextureHandle) -> ^SharedEvent { Device_newSharedTextureWithHandle :: #force_inline proc(self: ^Device, sharedHandle: ^SharedTextureHandle) -> ^SharedEvent {
return msgSend(^SharedEvent, self, "newSharedTextureWithHandle:", sharedHandle) return msgSend(^SharedEvent, self, "newSharedTextureWithHandle:", sharedHandle)
} }
@(objc_type=Device, objc_name="newTexture") @(objc_type=Device, objc_name="newSharedTexture")
Device_newTexture :: #force_inline proc(self: ^Device, desc: ^TextureDescriptor) -> ^Texture { Device_newSharedTexture :: proc{
Device_newSharedTextureWithDescriptor,
Device_newSharedTextureWithHandle,
}
@(objc_type=Device, objc_name="newTextureWithDescriptor")
Device_newTextureWithDescriptor :: #force_inline proc(self: ^Device, desc: ^TextureDescriptor) -> ^Texture {
return msgSend(^Texture, self, "newTextureWithDescriptor:", desc) return msgSend(^Texture, self, "newTextureWithDescriptor:", desc)
} }
@(objc_type=Device, objc_name="newTextureWithIOSurface") @(objc_type=Device, objc_name="newTextureWithIOSurface")
Device_newTextureWithIOSurface :: #force_inline proc(self: ^Device, descriptor: ^TextureDescriptor, iosurface: IOSurfaceRef, plane: NS.UInteger) -> ^Texture { Device_newTextureWithIOSurface :: #force_inline proc(self: ^Device, descriptor: ^TextureDescriptor, iosurface: IOSurfaceRef, plane: NS.UInteger) -> ^Texture {
return msgSend(^Texture, self, "newTextureWithDescriptor:iosurface:plane:", descriptor, iosurface, plane) return msgSend(^Texture, self, "newTextureWithDescriptor:iosurface:plane:", descriptor, iosurface, plane)
} }
@(objc_type=Device, objc_name="newTexture")
Device_newTexture :: proc{
Device_newTextureWithDescriptor,
Device_newTextureWithIOSurface,
}
@(objc_type=Device, objc_name="peerCount") @(objc_type=Device, objc_name="peerCount")
Device_peerCount :: #force_inline proc(self: ^Device) -> u32 { Device_peerCount :: #force_inline proc(self: ^Device) -> u32 {
return msgSend(u32, self, "peerCount") return msgSend(u32, self, "peerCount")
@@ -7147,22 +7165,34 @@ Heap_label :: #force_inline proc(self: ^Heap) -> ^NS.String {
Heap_maxAvailableSizeWithAlignment :: #force_inline proc(self: ^Heap, alignment: NS.UInteger) -> NS.UInteger { Heap_maxAvailableSizeWithAlignment :: #force_inline proc(self: ^Heap, alignment: NS.UInteger) -> NS.UInteger {
return msgSend(NS.UInteger, self, "maxAvailableSizeWithAlignment:", alignment) return msgSend(NS.UInteger, self, "maxAvailableSizeWithAlignment:", alignment)
} }
@(objc_type=Heap, objc_name="newBuffer") @(objc_type=Heap, objc_name="newBufferWithLength")
Heap_newBuffer :: #force_inline proc(self: ^Heap, length: NS.UInteger, options: ResourceOptions) -> ^Buffer { Heap_newBufferWithLength :: #force_inline proc(self: ^Heap, length: NS.UInteger, options: ResourceOptions) -> ^Buffer {
return msgSend(^Buffer, self, "newBufferWithLength:options:", length, options) return msgSend(^Buffer, self, "newBufferWithLength:options:", length, options)
} }
@(objc_type=Heap, objc_name="newBufferWithOptions") @(objc_type=Heap, objc_name="newBufferWithOptions")
Heap_newBufferWithOptions :: #force_inline proc(self: ^Heap, length: NS.UInteger, options: ResourceOptions, offset: NS.UInteger) -> ^Buffer { Heap_newBufferWithOptions :: #force_inline proc(self: ^Heap, length: NS.UInteger, options: ResourceOptions, offset: NS.UInteger) -> ^Buffer {
return msgSend(^Buffer, self, "newBufferWithLength:options:offset:", length, options, offset) return msgSend(^Buffer, self, "newBufferWithLength:options:offset:", length, options, offset)
} }
@(objc_type=Heap, objc_name="newTexture") @(objc_type=Heap, objc_name="newBuffer")
Heap_newTexture :: #force_inline proc(self: ^Heap, desc: ^TextureDescriptor) -> ^Texture { Heap_newBuffer :: proc{
Heap_newBufferWithLength,
Heap_newBufferWithOptions,
}
@(objc_type=Heap, objc_name="newTextureWithDescriptor")
Heap_newTextureWithDescriptor :: #force_inline proc(self: ^Heap, desc: ^TextureDescriptor) -> ^Texture {
return msgSend(^Texture, self, "newTextureWithDescriptor:", desc) return msgSend(^Texture, self, "newTextureWithDescriptor:", desc)
} }
@(objc_type=Heap, objc_name="newTextureWithOffset") @(objc_type=Heap, objc_name="newTextureWithDescriptorAndOffset")
Heap_newTextureWithOffset :: #force_inline proc(self: ^Heap, descriptor: ^TextureDescriptor, offset: NS.UInteger) -> ^Texture { Heap_newTextureWithDescriptorAndOffset :: #force_inline proc(self: ^Heap, descriptor: ^TextureDescriptor, offset: NS.UInteger) -> ^Texture {
return msgSend(^Texture, self, "newTextureWithDescriptor:offset:", descriptor, offset) return msgSend(^Texture, self, "newTextureWithDescriptor:offset:", descriptor, offset)
} }
@(objc_type=Heap, objc_name="newTexture")
Heap_newTexture :: proc{
Heap_newTextureWithDescriptor,
Heap_newTextureWithDescriptorAndOffset,
}
@(objc_type=Heap, objc_name="resourceOptions") @(objc_type=Heap, objc_name="resourceOptions")
Heap_resourceOptions :: #force_inline proc(self: ^Heap) -> ResourceOptions { Heap_resourceOptions :: #force_inline proc(self: ^Heap) -> ResourceOptions {
return msgSend(ResourceOptions, self, "resourceOptions") return msgSend(ResourceOptions, self, "resourceOptions")
@@ -7431,7 +7461,7 @@ Library_label :: #force_inline proc(self: ^Library) -> ^NS.String {
return msgSend(^NS.String, self, "label") return msgSend(^NS.String, self, "label")
} }
@(objc_type=Library, objc_name="newFunctionWithCompletionHandler") @(objc_type=Library, objc_name="newFunctionWithCompletionHandler")
Library_newFunctionWithCompletionHandler :: #force_inline proc(self: ^Library, descriptor: ^FunctionDescriptor, completionHandler: rawptr) -> ^Function { Library_newFunctionWithCompletionHandler :: #force_inline proc(self: ^Library, descriptor: ^FunctionDescriptor, completionHandler: ^NS.Block) -> ^Function {
return msgSend(^Function, self, "newFunctionWithDescriptor:completionHandler:", descriptor, completionHandler) return msgSend(^Function, self, "newFunctionWithDescriptor:completionHandler:", descriptor, completionHandler)
} }
@(objc_type=Library, objc_name="newFunctionWithDescriptor") @(objc_type=Library, objc_name="newFunctionWithDescriptor")
@@ -7444,7 +7474,7 @@ Library_newFunctionWithName :: #force_inline proc(self: ^Library, functionName:
return msgSend(^Function, self, "newFunctionWithName:", functionName) return msgSend(^Function, self, "newFunctionWithName:", functionName)
} }
@(objc_type=Library, objc_name="newFunctionWithConstantValuesAndCompletionHandler") @(objc_type=Library, objc_name="newFunctionWithConstantValuesAndCompletionHandler")
Library_newFunctionWithConstantValuesAndCompletionHandler :: #force_inline proc(self: ^Library, name: ^NS.String, constantValues: ^FunctionConstantValues, completionHandler: rawptr) -> ^Function { Library_newFunctionWithConstantValuesAndCompletionHandler :: #force_inline proc(self: ^Library, name: ^NS.String, constantValues: ^FunctionConstantValues, completionHandler: ^NS.Block) -> ^Function {
return msgSend(^Function, self, "newFunctionWithName:constantValues:completionHandler:", name, constantValues, completionHandler) return msgSend(^Function, self, "newFunctionWithName:constantValues:completionHandler:", name, constantValues, completionHandler)
} }
@(objc_type=Library, objc_name="newFunctionWithConstantValues") @(objc_type=Library, objc_name="newFunctionWithConstantValues")
@@ -7452,8 +7482,17 @@ Library_newFunctionWithConstantValues :: #force_inline proc(self: ^Library, name
function = msgSend(^Function, self, "newFunctionWithName:constantValues:error:", name, constantValues, &error) function = msgSend(^Function, self, "newFunctionWithName:constantValues:error:", name, constantValues, &error)
return return
} }
@(objc_type=Library, objc_name="newFunction")
Library_newFunction :: proc{
Library_newFunctionWithCompletionHandler,
Library_newFunctionWithDescriptor,
Library_newFunctionWithName,
Library_newFunctionWithConstantValuesAndCompletionHandler,
Library_newFunctionWithConstantValues,
}
@(objc_type=Library, objc_name="newIntersectionFunctionWithCompletionHandler") @(objc_type=Library, objc_name="newIntersectionFunctionWithCompletionHandler")
Library_newIntersectionFunctionWithCompletionHandler :: #force_inline proc(self: ^Library, descriptor: ^IntersectionFunctionDescriptor, completionHandler: rawptr) -> ^Function { Library_newIntersectionFunctionWithCompletionHandler :: #force_inline proc(self: ^Library, descriptor: ^IntersectionFunctionDescriptor, completionHandler: ^NS.Block) -> ^Function {
return msgSend(^Function, self, "newIntersectionFunctionWithDescriptor:completionHandler:", descriptor, completionHandler) return msgSend(^Function, self, "newIntersectionFunctionWithDescriptor:completionHandler:", descriptor, completionHandler)
} }
@(objc_type=Library, objc_name="newIntersectionFunction") @(objc_type=Library, objc_name="newIntersectionFunction")