Skip to content

VK_EXT_metal_objects: vkCreateSemaphore() always creates timeline semaphore when exportObjectType == VK_EXPORT_METAL_OBJECT_TYPE_METAL_SHARED_EVENT_BIT_EXT #1631

Open
@bangnoise

Description

@bangnoise

I'm not sure what the intended use is of exporting a MTLSharedEvent from a binary semaphore, because the underlying mechanism to manage the MTLSharedEvent's increasing value is not exposed, rendering the MTLSharedEvent next to useless.

That said, if one does try to create an exportable binary semaphore, a timeline semaphore is erroneously created in MVKDevice::createSemaphore() whenever VkExportMetalObjectCreateInfoEXT::exportObjectType is VK_EXPORT_METAL_OBJECT_TYPE_METAL_SHARED_EVENT_BIT_EXT.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugCompletedIssue has been fixed, or enhancement implemented.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions