Skip to content

Commit

Permalink
Metal: expose DRIVER_RESOURCE_LOGICAL_DEVICE for get_resource_native_…
Browse files Browse the repository at this point in the history
…handle()
  • Loading branch information
kroketio committed Sep 22, 2024
1 parent e4e024a commit e9c85be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/metal/rendering_device_driver_metal.mm
Original file line number Diff line number Diff line change
Expand Up @@ -3667,7 +3667,8 @@ bool isArrayTexture(MTLTextureType p_type) {
uint64_t RenderingDeviceDriverMetal::get_resource_native_handle(DriverResource p_type, ID p_driver_id) {
switch (p_type) {
case DRIVER_RESOURCE_LOGICAL_DEVICE: {
return 0;
uintptr_t devicePtr = (uintptr_t)(__bridge void *)device;
return (uint64_t)devicePtr;
}
case DRIVER_RESOURCE_PHYSICAL_DEVICE: {
return 0;
Expand Down

0 comments on commit e9c85be

Please sign in to comment.