amethyst / amethyst-starter-2d

Seed project for 2D games
Other
201 stars 42 forks source link

It works! #17

Closed tsal closed 4 years ago

tsal commented 4 years ago

Last year I had a number of issues getting this to work on macOS Mojave; as of your latest updates, it works - both with metal AND with vulkan (using MoltenVK) as a backend.

I do see a couple of errors from rendy around image handling, but it's a bit outside my depth - that said, the app still creates a window and shows the sprites!

image

Here's the non-impactful errors I'm seeing for Vulkan - metal works great:

[ERROR][gfx_backend_vulkan]
VALIDATION [UNASSIGNED-CoreValidation-DrawState-InvalidImageLayout (0)] : Submitted command buffer expects VkImage 0x1b000000001b[] (subresource: aspectMask 0x2 array layer 0, mip level 0) to be in layout VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL--instead, current layout is VK_IMAGE_LAYOUT_UNDEFINED.
object info: (type: COMMAND_BUFFER, hndl: 140701547901720)
tsal commented 4 years ago

(I know issues aren't normally celebratory, but hey, there is an error in the output!)

tsal commented 4 years ago

oops! error on shutdown for vulkan, too:

[ERROR][gfx_backend_vulkan]
VALIDATION [VUID-vkDestroyDevice-device-00378 (0)] : OBJ ERROR : For VkDevice 0x7ff7a2872e18[], VkSemaphore 0x3c000000003c[] has not been destroyed. The Vulkan spec states: All child objects created on device must have been destroyed prior to destroying device (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-vkDestroyDevice-device-00378)
object info: (type: SEMAPHORE, hndl: 65970697666620)