Commit Graph

16 Commits

Author SHA1 Message Date
antlilja
27c38931db Fixed bug in shader output path
The build root and cache root paths were being concatanated which
resulted in the wrong path being calculated for the shaders.
2023-02-20 15:18:44 +01:00
InKryption
ef75aa0fd6 Update to latest build system changes; use caching API in GenerateStep 2023-02-16 02:21:28 +01:00
avokadoen
b09e14a649 update build to use new build API 2023-02-08 20:23:21 +01:00
ashpil
737cc52908 allow specifying additional watches files for shader compilation caching 2023-01-21 19:21:32 -05:00
ashpil
235edc8c67 remove a couple glslc specific assumptions 2023-01-20 22:52:41 -05:00
Robin Voetter
f7a4e4346e Improve ShaderCreateStep to work around cache issues 2022-12-30 00:31:48 +01:00
thesmartwon
8db9029286 Copy src 2022-12-02 19:21:28 -05:00
Robin Voetter
09d2de4fb6 Add special cases for bit packed structs
This commit adds special cases for AccelerationStructureInstanceKHR and
VkAccelerationStructureSRTMotionInstanceNV. These types use bit-packed
fields which are not representable in the current version of the zig
stage 2 compiler. This might change when
https://github.com/ziglang/zig/issues/13009 is resolved.

Fixes #56
2022-10-07 00:21:15 +02:00
Robin Voetter
77885af37e clean up ShaderCompileStep.make 2022-08-20 12:20:45 +02:00
Vivianne Langdon
d96e32eb6e Add support for multiple entrypoints and a custom output file 2022-07-20 22:05:24 -07:00
ashpil
809537f536 appends .spv to glslc compiled filename 2021-12-29 21:49:52 +03:00
ashpil
e2268a7eb4 makes shader build comment output directory user-specifiable 2021-12-29 21:45:12 +03:00
InKryption
2c9aa3655d Copy array of strings instead of assuming lifetime
Current setup works fine if passed static memory like '&.{ "glslc" }', but produces errors of various types (segmentation faults, access denied, file doesn't exist, etc) if passed a dynamically allocated slice, such as a slice containing the result of a call to `Builder.pathJoin`, a la `b.pathJoin(&.{ b.env_map.get("VULKAN_SDK").?, "bin", "glslc" })`.
2021-12-27 23:17:07 +01:00
Robin Voetter
511211f038 zig fmt **.zig
This also replaces @byteOffsetOf with @offsetOf.
2021-06-13 15:15:42 +02:00
Robin Voetter
6f965fead0 Update to new build API 2021-06-12 13:44:48 +02:00
Robin Voetter
74d6846d68 Use underscores instead of dash in filenames 2020-08-11 17:40:02 +02:00