Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building for Quest Pro; why is Unsweep, Scan, and Downsweep not supported? #5

Closed
edhyah opened this issue Aug 25, 2024 · 1 comment
Closed

Comments

@edhyah
Copy link

edhyah commented Aug 25, 2024

Referring to this project: https://github.com/b0nes164/UnityGaussianSplatting

I'm trying to build this project for the Meta Quest Pro. Unlike others, I can't get it to build; specifically, in GpuSorting.cs, m_Valid is false (snippet below):

        public GpuSorting(ComputeShader cs)
        {
            m_CS = cs;
            if (cs)
            {
                m_kernelInitDeviceRadixSort = cs.FindKernel("InitDeviceRadixSort");
                m_kernelUpsweep = cs.FindKernel("Upsweep");
                m_kernelScan = cs.FindKernel("Scan");
                m_kernelDownsweep = cs.FindKernel("Downsweep");
            }

            m_Valid = m_kernelInitDeviceRadixSort >= 0 &&
                      m_kernelUpsweep >= 0 &&
                      m_kernelScan >= 0 &&
                      m_kernelDownsweep >= 0;
            if (m_Valid)
            {
                if (!cs.IsSupported(m_kernelInitDeviceRadixSort) ||
                    !cs.IsSupported(m_kernelUpsweep) ||
                    !cs.IsSupported(m_kernelScan) ||
                    !cs.IsSupported(m_kernelDownsweep))
                {
                    m_Valid = false;
                }
            }
            ...

It's set to false because m_kernelUpsweep, m_kernelScan, and m_kernelDownsweep are all not supported.

Why is this the case? Is this because I'm building this project on a Macbook? I'm wondering if this is the case because when I go to Unity and go to the Inspector for the shader, I get the errors shown below, which seems to show some issues with Metal. However, the platform I'm building for is Android, so I feel like this shouldn't be the case. Anyhow, I'm a total newb at this, so excuse any sillyness.

Screenshot 2024-08-24 at 10 27 29 PM
@b0nes164
Copy link
Owner

b0nes164 commented Aug 25, 2024

The editor error is showing up because whatever Mac you have does not support Metal 2.3+, or your macOS version is out of date and does not support Metal 2.3+.

Now, that should not stop you from building though; the error is just stopping the project from running in the editor.

However, if you do get it to build, there are ongoing issues on Adreno 600 series chips. See Issue #4 on this repo.

@edhyah edhyah closed this as completed Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants