gpu: add ConstantEntry
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
ad45016481
commit
3ab623f360
2 changed files with 6 additions and 6 deletions
|
|
@ -1,9 +1,3 @@
|
||||||
typedef struct WGPUConstantEntry {
|
|
||||||
next_in_chain: *const ChainedStruct,
|
|
||||||
char const * key;
|
|
||||||
value: f64,
|
|
||||||
} WGPUConstantEntry;
|
|
||||||
|
|
||||||
typedef struct WGPUCopyTextureForBrowserOptions {
|
typedef struct WGPUCopyTextureForBrowserOptions {
|
||||||
next_in_chain: *const ChainedStruct,
|
next_in_chain: *const ChainedStruct,
|
||||||
flip_y: bool,
|
flip_y: bool,
|
||||||
|
|
|
||||||
|
|
@ -440,6 +440,12 @@ pub const CompilationMessage = extern struct {
|
||||||
length: u64,
|
length: u64,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const ConstantEntry = extern struct {
|
||||||
|
next_in_chain: *const ChainedStruct,
|
||||||
|
key: [*:0]const u8,
|
||||||
|
value: f64,
|
||||||
|
};
|
||||||
|
|
||||||
test "BackendType name" {
|
test "BackendType name" {
|
||||||
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
|
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue