vendor/wgpu: add BlendOperation.Undefined to match webgpu.h

This commit is contained in:
Nico committed 2026-10-08 22:51:20 +02:00
1 parent 8866bd3252
commit 5b29d485ee
2 files changed
+7 -6

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ const ENUMS = {
PowerPreference: [undefined, "low-power", "high-performance", ],
CompositeAlphaMode: ["auto", "opaque", "premultiplied", "unpremultiplied", "inherit", ],
StencilOperation: [undefined, "keep", "zero", "replace", "invert", "increment-clamp", "decrement-clamp", "increment-wrap", "decrement-wrap", ],
BlendOperation: ["add", "subtract", "reverse-subtract", "min", "max", ],
BlendOperation: [undefined, "add", "subtract", "reverse-subtract", "min", "max", ],
BlendFactor: [undefined, "zero", "one", "src", "one-minus-src", "src-alpha", "one-minus-src-alpha", "dst", "one-minus-dst", "dst-alpha", "one-minus-dst-alpha", "src-alpha-saturated", "constant", "one-minus-constant", "src1", "one-minus-src1", "src1-alpha", "one-minus-src1-alpha" ],
PresentMode: [undefined, "fifo", "fifo-relaxed", "immediate", "mailbox", ],
TextureAspect: [undefined, "all", "stencil-only", "depth-only"],
+6 -5
View File
@@ -163,11 +163,12 @@ BlendFactor :: enum i32 {
}
BlendOperation :: enum i32 {
Add = 0x00000000,
Subtract = 0x00000001,
ReverseSubtract = 0x00000002,
Min = 0x00000003,
Max = 0x00000004,
Undefined = 0x00000000,
Add = 0x00000001,
Subtract = 0x00000002,
ReverseSubtract = 0x00000003,
Min = 0x00000004,
Max = 0x00000005,
}
BufferBindingType :: enum i32 {