gpu: add ConstantEntry

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-15 20:32:08 -07:00 committed by Stephen Gutekanst
parent ad45016481
commit 3ab623f360
2 changed files with 6 additions and 6 deletions

View file

@ -1,9 +1,3 @@
typedef struct WGPUConstantEntry {
next_in_chain: *const ChainedStruct,
char const * key;
value: f64,
} WGPUConstantEntry;
typedef struct WGPUCopyTextureForBrowserOptions {
next_in_chain: *const ChainedStruct,
flip_y: bool,

View file

@ -440,6 +440,12 @@ pub const CompilationMessage = extern struct {
length: u64,
};
pub const ConstantEntry = extern struct {
next_in_chain: *const ChainedStruct,
key: [*:0]const u8,
value: f64,
};
test "BackendType name" {
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
}