{"id":20880131,"url":"https://github.com/cinight/shadervarianttool","last_synced_at":"2025-08-30T10:44:26.911Z","repository":{"id":154187445,"uuid":"631061568","full_name":"cinight/ShaderVariantTool","owner":"cinight","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-26T21:31:32.000Z","size":532,"stargazers_count":63,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T15:53:09.580Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cinight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-21T20:37:20.000Z","updated_at":"2024-12-16T05:57:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"78f66430-c757-4c13-acc9-4dc81e4d54c5","html_url":"https://github.com/cinight/ShaderVariantTool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cinight/ShaderVariantTool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cinight%2FShaderVariantTool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cinight%2FShaderVariantTool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cinight%2FShaderVariantTool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cinight%2FShaderVariantTool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cinight","download_url":"https://codeload.github.com/cinight/ShaderVariantTool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cinight%2FShaderVariantTool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272839674,"owners_count":25001862,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T07:19:07.980Z","updated_at":"2025-08-30T10:44:26.881Z","avatar_url":"https://github.com/cinight.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ShaderVariantTool\nThis tool lists out all shader keywords and variant counts that are being included in player build and before stripping. \\\nExpand a shader and see it's keyword table. e.g. If a shader keyword is being completely stripped, the Comiled Count for that keyword should be 0 in the after scriptable stripping column.\n\n### How to install:\n1. On Unity Editor \u003e Window \u003e Package Manager\n2. On top left, click \"+\"\n3. Select \"Add package from git URL...\"\n4. Copy and paste:\n   - For Unity **2023.3.0b2+**: `https://github.com/cinight/ShaderVariantTool.git`\n   - For Unity **2022.2.6f1+**: `https://github.com/cinight/ShaderVariantTool.git#2022.2`\n   - For Unity **2021.3.18f1+**: `https://github.com/cinight/ShaderVariantTool.git#2021.3`\n5. Click Add\n6. OR you can edit Packages/manifest.json and add \u003cbr\u003e`\"com.cinight.shader-variant-tool\": \"https://github.com/cinight/ShaderVariantTool.git\",`\n\n### How to use:\n1. Make a player build\n2. Top menu \u003e Windows \u003e ShaderVariantTool\nNote: The tool also generates a .csv file under the project root folder. \\\nIt contains more information and it's useful for keeping a record.\n\\\n\\\n![](README01.jpg)\n\n### FAQ:\n1. What is Compiled Count?\n   - Each entry on the tool = each keyword in a shader snippet before / after scriptable stripping.\n   - The column \"Complied Count\" = how many variants in that snippet contain this keyword.\n2. Shouldn't the tool show all the keywords in every individual variant?\n   - In most of my use case, I care more about what keywords are being included (i.e. not stripped) in the build, instead of individual variant, which the keyword list for each variant could be too many/long to look at.\n   - If you do need the detailed variant list, use [Project Auditor](https://github.com/Unity-Technologies/ProjectAuditor/blob/master/Documentation~/Installing.md#package-manager-ui-recommended)\n3. What are internal / unique program count?\n   - internal count = shader variants that are serialized in the player. This count should be equals to the shader variant count after scriptable-stripping. If not, it means a shader has error and thus the problematic shader variant will be skipped.\n   - unique count = deduplicated shader variants after shader compilation\n4. Please note that for XR there might be more variants added after compilation so the original shader variant count might be less than the shader variant counts after stripping.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcinight%2Fshadervarianttool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcinight%2Fshadervarianttool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcinight%2Fshadervarianttool/lists"}