Skip to content

Commit

Permalink
Merge pull request godotengine#97309 from kroketio/metal-expose-devic…
Browse files Browse the repository at this point in the history
…e-handle

Metal: expose MTLDevice
  • Loading branch information
clayjohn authored Oct 7, 2024
2 parents db66bd3 + e9c85be commit e7c39ef
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 @@ -3671,7 +3671,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 e7c39ef

Please sign in to comment.