Skip to content

Commit e9c85be

Browse files
committed
Metal: expose DRIVER_RESOURCE_LOGICAL_DEVICE for get_resource_native_handle()
1 parent e4e024a commit e9c85be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/metal/rendering_device_driver_metal.mm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3667,7 +3667,8 @@ bool isArrayTexture(MTLTextureType p_type) {
36673667
uint64_t RenderingDeviceDriverMetal::get_resource_native_handle(DriverResource p_type, ID p_driver_id) {
36683668
switch (p_type) {
36693669
case DRIVER_RESOURCE_LOGICAL_DEVICE: {
3670-
return 0;
3670+
uintptr_t devicePtr = (uintptr_t)(__bridge void *)device;
3671+
return (uint64_t)devicePtr;
36713672
}
36723673
case DRIVER_RESOURCE_PHYSICAL_DEVICE: {
36733674
return 0;

0 commit comments

Comments
 (0)