Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by hicks · Jul 27, 2015 at 06:52 PM · compilercompute shadercompile-errordirectx 11

Exclude renderer from compute shader compilation

Since Unity 5.1 there is this OpenGL compilation for compute shaders see here. Unfortunately this broke many of my complex compute shaders I'm currently working on.

In Unity 5.0, when selecting one of them in the inspector (with debug enabled), there was one variant with target renderer 2 and target level 0. Everything compiled just fine.

In Unity 5.1 (all versions up to 5.1.2p1 so far), this same compute shader did not compile. It said: 'internal error compiling shader platform=15' and 'internal error compiling shader platform=9'.

Creating a new compute shader shows 4 variants: (target renderer, target level)

  • (2, 0)

  • (18, 0)

  • (17, 12)

  • (11, 3)

My failing compute shader only shows two variants (2,0) and (18,0), so I guess it fails during the compilation of the second or third one.

Now, finally, here is my question: Is it possible to prevent the compilation of the last three variants? I only need DirectX 11 for Windows, which was working like a charm.

While writing this, I noticed that my compute shaders are still working on my target platform in spite of those error messages! So, I could just ignore those errors. But it would be much better if I could manually exclude the compilation for unwanted target platforms (like exclude_renderers for normal shaders).

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image tim from amplitude · Sep 29, 2015 at 11:57 AM 0
Share

I am also very interested in this feature. $$anonymous$$ostly because compiling a compute shader for all the plateform is far tooooo long when you are designing and testing a compute shader.

You should be able to disable compilation for all the plateform except the one you are using while making your shader (PC directX 11 for me). Then when the shader is ready, you enable the compilation for the other plateform if it is usefull.

So even if the shader compile just fine in all the plateform, it is usefull to have compilation disabling options.

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Unity project wont build 0 Answers

How do i fix a Compiler error 2 Answers

3D Cellular Automata on the GPU 1 Answer

Compute Shader, replacing floats to double 0 Answers

Compute Shader not work on older GPU with DX11 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges