adding some opcodes
All checks were successful
Build / build (push) Successful in 1m59s
Test / build (push) Successful in 8m50s

This commit is contained in:
2026-03-24 04:34:04 +01:00
parent d1bf1c23f2
commit a503f54e43
5 changed files with 177 additions and 55 deletions

View File

@@ -72,7 +72,7 @@ const ImageInfo = struct {
access: spv.SpvAccessQualifier,
};
const Decoration = struct {
pub const Decoration = struct {
rtype: spv.SpvDecoration,
literal_1: SpvWord,
literal_2: ?SpvWord,
@@ -112,6 +112,7 @@ pub const TypeData = union(Type) {
components_type_word: SpvWord,
components_type: Type,
member_count: SpvWord,
stride: SpvWord,
},
RuntimeArray: struct {
components_type_word: SpvWord,
@@ -142,7 +143,7 @@ pub const TypeData = union(Type) {
.Int => |i| @divExact(i.bit_length, 8),
.Float => |f| @divExact(f.bit_length, 8),
.Vector => |v| results[v.components_type_word].variant.?.Type.getSize(results),
.Array => |a| results[a.components_type_word].variant.?.Type.getSize(results),
.Array => |a| a.stride,
.Matrix => |m| results[m.column_type_word].variant.?.Type.getSize(results),
.RuntimeArray => |a| a.stride,
.Structure => |s| blk: {