Skip to content

Commit

Permalink
Handle MTLHeap case in getExternalImageProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
aitor-lunarg committed Nov 4, 2024
1 parent 016a57a commit 0c2a03a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1388,6 +1388,8 @@
if (_pixelFormats.getChromaSubsamplingPlaneCount(format) > 1u)
return _mtlTextureHeapExternalMemoryProperties;
return _mtlTextureExternalMemoryProperties;
case VK_EXTERNAL_MEMORY_HANDLE_TYPE_MTLHEAP_BIT_EXT:
return _mtlTextureHeapExternalMemoryProperties;
default:
return _emptyExtMemProps;
}
Expand Down

0 comments on commit 0c2a03a

Please sign in to comment.