working on spirv debug
Some checks failed
Build / build (push) Successful in 2m18s
Test / build_and_test (push) Failing after 1h22m47s

This commit is contained in:
2026-01-25 21:55:02 +01:00
parent 067db7a48a
commit b333f143b4
5 changed files with 50 additions and 11 deletions

View File

@@ -23,11 +23,13 @@ pub fn create(device: *base.Device, allocator: std.mem.Allocator, info: *const v
.destroy = destroy,
};
const code = info.p_code[0..@divExact(info.code_size, 4)];
self.* = .{
.interface = interface,
.module = spv.Module.init(
allocator,
info.p_code[0..@divExact(info.code_size, 4)],
code,
.{
.use_simd_vectors_specializations = !std.process.hasEnvVarConstant(lib.NO_SHADER_SIMD_ENV_NAME),
},