Title: Compute shader error on Metal · Issue #3 · IndieVisualLab/UnityGraphicsProgramming · GitHub
Open Graph Title: Compute shader error on Metal · Issue #3 · IndieVisualLab/UnityGraphicsProgramming
X Title: Compute shader error on Metal · Issue #3 · IndieVisualLab/UnityGraphicsProgramming
Description: I'm using 2018.3.6f1, MacBook Pro. I found out that some compute shaders are not correctly compiled on Metal because the lines of #pragma kernel contain comments. Unity shows error like "Macro names must be identifiers at kernel [KERNEL_...
Open Graph Description: I'm using 2018.3.6f1, MacBook Pro. I found out that some compute shaders are not correctly compiled on Metal because the lines of #pragma kernel contain comments. Unity shows error like "Macro name...
X Description: I'm using 2018.3.6f1, MacBook Pro. I found out that some compute shaders are not correctly compiled on Metal because the lines of #pragma kernel contain comments. Unity shows error like "M...
Opengraph URL: https://github.com/IndieVisualLab/UnityGraphicsProgramming/issues/3
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Compute shader error on Metal","articleBody":"I'm using 2018.3.6f1, MacBook Pro. I found out that some compute shaders are not correctly compiled on Metal because the lines of #pragma kernel contain comments. Unity shows error like \"Macro names must be identifiers at kernel [KERNEL_NAME] metal \u003cpredefined macros\u003e:00\".\r\n\r\nex) Boids.compute\r\n```\r\n// カーネル関数を指定\r\n#pragma kernel ForceCS // 操舵力を計算\r\n#pragma kernel IntegrateCS // 速度, 位置を計算\r\n```\r\n\r\nWhen I remove comments at the right, I can run samples without problems.\r\n\r\n```\r\n// カーネル関数を指定\r\n#pragma kernel ForceCS\r\n#pragma kernel IntegrateCS\r\n```\r\n\r\nMaybe it's Unity bug but I think it's safe to delete comments after #pragma kernel lines.","author":{"url":"https://github.com/Prin-E","@type":"Person","name":"Prin-E"},"datePublished":"2019-03-08T16:36:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/3/UnityGraphicsProgramming/issues/3"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:42622667-2368-9fec-3f08-6d2c7497a822 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C78E:2F3C5F:33B6D12:45D3B13:69706E73 |
| html-safe-nonce | 7cb218ed5b0b3491361aaeb140669114f7ebbed40912e6651d86689e0644ff5a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzhFOjJGM0M1RjozM0I2RDEyOjQ1RDNCMTM6Njk3MDZFNzMiLCJ2aXNpdG9yX2lkIjoiOTE4MTY3MjUxMDM4NDUzMzEwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ff6efe6462364edb0bf0bea9efd54e35385372d387dae78a2ed7a7b21cab3737 |
| hovercard-subject-tag | issue:418862648 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IndieVisualLab/UnityGraphicsProgramming/3/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fa6be7088621e399cf6e59acba37d6da41495dc020d657326c59247917849af3/IndieVisualLab/UnityGraphicsProgramming/issues/3 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fa6be7088621e399cf6e59acba37d6da41495dc020d657326c59247917849af3/IndieVisualLab/UnityGraphicsProgramming/issues/3 |
| og:image:alt | I'm using 2018.3.6f1, MacBook Pro. I found out that some compute shaders are not correctly compiled on Metal because the lines of #pragma kernel contain comments. Unity shows error like "Macro name... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Prin-E |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| turbo-cache-control | no-preview |
| go-import | github.com/IndieVisualLab/UnityGraphicsProgramming git https://github.com/IndieVisualLab/UnityGraphicsProgramming.git |
| octolytics-dimension-user_id | 30280585 |
| octolytics-dimension-user_login | IndieVisualLab |
| octolytics-dimension-repository_id | 104029894 |
| octolytics-dimension-repository_nwo | IndieVisualLab/UnityGraphicsProgramming |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 104029894 |
| octolytics-dimension-repository_network_root_nwo | IndieVisualLab/UnityGraphicsProgramming |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7d6181066430cc06553c8396ca201e194ae33cb9 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width