Bill Hollings

Forum Replies Created

Viewing 25 posts - 26 through 50 (of 121 total)
  • Author
    Posts
  • in reply to: Metal 2 + Latest GLES ? #1287
    Bill Hollings
    Keymaster

      @matfrem

      MoltenGL is actively supported.

      However, at this time, we are not planning to move beyond OpenGL ES 2.0, unless there is significant interest…nor do we plan to add Metal 2 support at this time.

      …Bill

      in reply to: Uploading large texture data #1286
      Bill Hollings
      Keymaster

        @kruseborn

        MoltenVK 0.18.1 is available for download now, and includes support for larger textures.

        Please download and let us know whether this fixes the issue for you.

        …Bill

        in reply to: Uploading large texture data #1278
        Bill Hollings
        Keymaster

          @kruseborn

          We are making these changes now. Do you have a sample app that includes a large texture…so we can test it to make sure it works in the way you are using it?

          …Bill

          in reply to: Shader converter: gl_FragDepth and sampler arrays #1273
          Bill Hollings
          Keymaster

            @skalarproduktraum

            Thanks for identifying the issue with gl_FragDepth. It is indeed not behaving correctly. We have fixed this now…and it will appear in the next release of MoltenVK.

            Sampler arrays are new in Metal2 and support for them has not yet been added to MoltenVK. Please look for it later in the year.

            …Bill

            Bill Hollings
            Keymaster

              @tracyma

              I’m glad you resolved your issue. Thanks for sharing it here.

              You also may be interested to know that with the new 0.18.0 release of Molten, you can now use MoltenVK as a dynamic library on iOS (and macOS).

              …Bill

              in reply to: Now possible to build with Rust and MoltenVK #1262
              Bill Hollings
              Keymaster

                Okay. Thanks for the dev history explanation.

                …Bill

                in reply to: Now possible to build with Rust and MoltenVK #1260
                Bill Hollings
                Keymaster

                  @robertwhurst

                  Thanks very much for letting us know about this! Great work!

                  Would you allow us to publicize this through our Twitter feed and future press releases?

                  Thanks…

                  …Bill

                  in reply to: VkMemoryHeap size #1258
                  Bill Hollings
                  Keymaster

                    @rextimmy

                    MoltenVK does not currently use iOS Metal Heaps. They will be introduced in an upcoming release.

                    …Bill

                    Bill Hollings
                    Keymaster

                      @ch

                      Right. Unfortunately…there is nothing in the current version of MoltenVK that can help with that. We can look to add the capability to make a distinct call to insert a debug capture boundary in a future release.

                      In the meantime…I assume you are using multiple queues for performance through concurrency? Is it possible to temporarily use your presentation queue for your texture manipulation efforts, until you determine what the problem is through a GPU frame trace?

                      …Bill

                      Bill Hollings
                      Keymaster

                        @ch

                        Is the problem that your effort is not happening in a queue that ends up being presented at all?

                        …Bill

                        Bill Hollings
                        Keymaster

                          @ch

                          MoltenVK automatically handles that for you as part of the Vulkan vkQueuePresentKHR() call…so that you can capture GPU frames.

                          As with any app, you need to ensure that within your Xcode Scheme, your app is being run in Debug mode and GPU Frame Capture is enabled.

                          Please try it out with the Demo apps that come with MoltenVK, and confirm that it is working. If you are still having trouble, please expand on how you are using it, and what might be different between your app and the MoltenVK Demo apps.

                          …Bill

                          Bill Hollings
                          Keymaster

                            @kaben

                            I don’t have a strict timeline to offer at this point…but it is a high priority for us…so work should begin within the next few weeks…with delivery a couple of months out.

                            …Bill

                            in reply to: Uploading large texture data #1220
                            Bill Hollings
                            Keymaster

                              @kruseborn

                              Good feedback. I appreciate you letting us know your results with that texture size.

                              Unfortunately…it’s not currently possible to do either of what you are asking.

                              The VkDeviceMemory objects that back Vulkan image objects, are in turn backed by MTLBuffers. Based on your feedback, we can look at re-factoring how memory management works with textures within MoltenVK, but that will require some development effort, and wouldn’t be available for several weeks.

                              And unfortunately, the other option…of applying an existing MTLTexture to a VkImage…does not exist within the MoltenVK API.

                              What is your timing on needing this kind of capability?

                              …Bill

                              in reply to: Uploading large texture data #1218
                              Bill Hollings
                              Keymaster

                                @kruseborn

                                Under Vulkan, device memory is allocated and populated separately from the creation of a buffer or image on that memory.

                                In order to support this behaviour in the general sense, currently, all device memory allocations under MoltenVK are backed by a MTLBuffer. Consequently, device memory allocations are limited by the size of a MTLBuffer on the runtime platform.

                                …Bill

                                Bill Hollings
                                Keymaster

                                  @kruseborn

                                  I have not been able to replicate this on a MacBook 2014 running Sierra 10.12.4.

                                  The presentSupport always comes back as true for either the discrete or integrated GPU.

                                  Normally, the only reason why that value would come back as false should be if the GPU reports that it is running headless (with no display attached)…which should never happen on a MacBook.

                                  The fact that restarting your computer resets this issue indicates that it might be an issue within Apple’s Metal drivers on your particular platform. What Mac and OS X version are you using?

                                  …Bill

                                  in reply to: VK_FORMAT_B8G8R8A8_SRGB #1214
                                  Bill Hollings
                                  Keymaster

                                    @rextimmy

                                    You are entirely correct. As you expected, the format VK_FORMAT_B8G8R8A8_SRGB is indeed supported as a surface format on both macOS and iOS by MoltenVK and Metal.

                                    The value VK_FORMAT_A8B8G8R8_SRGB_PACK32 is being reported incorrectly by the vkGetPhysicalDeviceSurfaceFormatsKHR() function. The VK_FORMAT_B8G8R8A8_SRGB value should be reported instead.

                                    We’ll fix this for the next release.

                                    Thanks for pointing out this issue.

                                    …Bill

                                    Bill Hollings
                                    Keymaster

                                      @pooyaeimandar

                                      Thanks for supporting MoltenVK in your game engine, and thanks for including the link to it.

                                      The shader converter does not currently support conversion of Tessellation or Compute shaders from SPIR-V.

                                      However, both features are a top priority for us, and will be under development very soon. You should expect to see them soon.

                                      Regards…

                                      …Bill

                                      Bill Hollings
                                      Keymaster

                                        @kruseborn

                                        It’s hard to see how that is happening. The logic is pretty simple for returning that value.

                                        Are you encountering this on iOS or OS X?

                                        Is there any pattern to when it returns one value or the other?

                                        Are you able to provide us with instructions or sample code in order to reproduce the issue?

                                        …Bill

                                        in reply to: MoltenVK with Xamarin/VulkanSharp? #1202
                                        Bill Hollings
                                        Keymaster

                                          Hi Alex…

                                          MoltenVK is a Vulkan implementation that runs on top of Metal on macOS and iOS.

                                          The Xcode iPad/iPhone simulator does not support Metal.

                                          So…you (like all developers using Metal) need to compile and run your code using a real iPad or iPhone device.

                                          …Bill

                                          in reply to: MoltenVK with Xamarin/VulkanSharp? #1200
                                          Bill Hollings
                                          Keymaster

                                            Hi Alex…

                                            Thanks for your interest in MoltenVK.

                                            MoltenVK is a standard implementation of Vulkan, and works like other implementations, using the same Vulkan C bindings. For iOS, you link to the MoltenVK framework within your project (typically Xcode).

                                            We have not tested MoltenVK with VulkanSharp, but as long as you can access the standard Vulkan API through VulkanSharp, and have the ability to link to the MoltenVK iOS framework within your dev environment, it should work.

                                            Regards…

                                            The MoltenVK Team

                                            in reply to: Support for VK_EXT_debug_report instance extension #1183
                                            Bill Hollings
                                            Keymaster

                                              @grimeh

                                              At present, we are focused on developing the driver layer features of Vulkan on iOS and macOS.

                                              We are aware that support for higher layers on these platforms is necessary, and have engaged in discussions with LunarG about working together to add these platforms to the layer frameworks.

                                              Unfortunately, I can’t give you a timeframe yet for delivery of those capabilities.

                                              …Bill

                                              in reply to: Query Presentation Support #1182
                                              Bill Hollings
                                              Keymaster

                                                @grimeh

                                                Currently, the VK_MVK_macos_surface and VK_MVK_ios_surface extensions are similar to the VK_KHR_android_surface extension, and for the same reasons. Each GPU device is expected to be able to render to the system display, and therefore no equivalent query functions are currently provided.

                                                Such functionality may be added to either extension in the future should it proved needed.

                                                …Bill

                                                in reply to: tri-frag.spv: not a directory #1178
                                                Bill Hollings
                                                Keymaster

                                                  @necktwi

                                                  I’m not sure why you are having trouble with the Triangle and Cube demos in VulkanSamples. I’ve just tried downloading Molten and VulkanSamples, as you have, and it builds and runs fine.

                                                  The error is happening within Xcode’s built-in copy operation. Perhaps have a look at the files within the Xcode Copy Bundle Resources Build Phase, and verify that Xcode has permissions to the VulkanSamples folder.

                                                  Regarding the Cinder demo, unfortunately, it is not yet publicly available. We are working to get it released through the Cinder team.

                                                  …Bill

                                                  Bill Hollings
                                                  Keymaster

                                                    @necktwi

                                                    As the error suggests, the Metal device that you are using does not support drawing with a non-zero vertex or instance base, which is used by the Hologram demo.

                                                    You require an A9X GPU (iOS_GPUFamily3_v1), or OS X/macOS (OSX_GPUFamily1_v1) to support that feature.

                                                    In your app, you can determine the availability of this feature by calling the vkGetPhysicalDeviceMetalFeaturesMVK() function as defined in vk_mvk_moltenvk.h.

                                                    …Bill

                                                    in reply to: tri-frag.spv: not a directory #1171
                                                    Bill Hollings
                                                    Keymaster

                                                      @necktwi

                                                      Sorry to hear you are having trouble.

                                                      Did you follow the instructions in the Installation section of the README_MoltenVK_Demos.md document…including retrieving the brenwill version of the LunarG demos (not the LunarG version), and making the required change to the symbolic link to the VulkanSamples directory?

                                                      …Bill

                                                    Viewing 25 posts - 26 through 50 (of 121 total)