{"id":16116933,"url":"https://github.com/ralith/vk-shader-macros","last_synced_at":"2025-08-11T22:40:02.047Z","repository":{"id":42704584,"uuid":"172616911","full_name":"Ralith/vk-shader-macros","owner":"Ralith","description":"Procedural macros for working with Vulkan shaders","archived":false,"fork":false,"pushed_at":"2025-06-06T18:20:12.000Z","size":28,"stargazers_count":42,"open_issues_count":0,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-07T19:14:11.992Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ralith.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-02-26T01:47:39.000Z","updated_at":"2025-06-06T18:20:15.000Z","dependencies_parsed_at":"2024-10-26T19:31:47.624Z","dependency_job_id":"ccb42b91-2e4b-4bc9-9520-457ed1dba205","html_url":"https://github.com/Ralith/vk-shader-macros","commit_stats":{"total_commits":28,"total_committers":5,"mean_commits":5.6,"dds":0.25,"last_synced_commit":"7ca4e1e35702c95db9c3ef69e54b9f51049d25da"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/Ralith/vk-shader-macros","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ralith%2Fvk-shader-macros","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ralith%2Fvk-shader-macros/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ralith%2Fvk-shader-macros/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ralith%2Fvk-shader-macros/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ralith","download_url":"https://codeload.github.com/Ralith/vk-shader-macros/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ralith%2Fvk-shader-macros/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269969663,"owners_count":24505437,"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-11T02:00:10.019Z","response_time":75,"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-10-09T20:27:13.839Z","updated_at":"2025-08-11T22:40:02.003Z","avatar_url":"https://github.com/Ralith.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vk-shader-macros\n\n[![Documentation](https://docs.rs/vk-shader-macros/badge.svg)](https://docs.rs/vk-shader-macros/)\n[![Crates.io](https://img.shields.io/crates/v/vk-shader-macros.svg)](https://crates.io/crates/vk-shader-macros)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE-MIT)\n[![License: Apache 2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE-APACHE)\n\nA procedural macro for compiling GLSL into SPIR-V constants.\n\nUnlike the standard `include_bytes` macro, paths are currently\nresolved relative to crate root. This is due to a temporary limitation\nin the procedural macro API.\n\n## Examples\n\n```rust\nconst VERT: \u0026[u32] = include_glsl!(\"shaders/example.vert\");\nconst FRAG: \u0026[u32] = include_glsl!(\"shaders/example.glsl\", kind: frag);\nconst RGEN: \u0026[u32] = include_glsl!(\"shaders/example.rgen\", target: vulkan1_2); // vulkan1_2 is required to build with GL_EXT_ray_tracing\n```\n\nDebug info is generated by default; pass `strip` to the macro to omit\nit, or build the crate with the `strip` feature enabled.\n\n## Why `[u32]`?\n\nSPIR-V is a stream of 32-bit words, not bytes, and this is reflected\nin APIs that consume it. In particular, passing a `[u8]` of SPIR-V\nthat is not 4-byte-aligned to Vulkan is undefined behavior. Storing\nSPIR-V in its native format guarantees that this will never occur,\nwithout requiring copying or unsafe code.\n\n## Dependencies\n\nThis crate currently depends on the foreign\n[shaderc](https://github.com/google/shaderc/) library. By default, it\nwill attempt to use an installed shaderc library. However if it does\nnot exist, it will fall back to building from source, requiring git,\ncmake, python 3, and a supported C++ compiler to be available in the\nbuild environment. When using a pre-compiled shaderc, care must be\ntaken to use a version that is binary-compatible with the one checked\nout by [the shaderc crate](https://github.com/google/shaderc-rs).\nYou can force shaderc to be built from source by enabling the\n`build-from-source` feature on vk-shader-macros.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fralith%2Fvk-shader-macros","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fralith%2Fvk-shader-macros","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fralith%2Fvk-shader-macros/lists"}