gpu: add CompilationMessage
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
e28959c1cf
commit
ad45016481
2 changed files with 10 additions and 10 deletions
|
|
@ -1,13 +1,3 @@
|
||||||
typedef struct WGPUCompilationMessage {
|
|
||||||
next_in_chain: *const ChainedStruct,
|
|
||||||
char const * message; // nullable
|
|
||||||
WGPUCompilationMessageType type;
|
|
||||||
line_num: u64,
|
|
||||||
line_pos: u64,
|
|
||||||
offset: u64,
|
|
||||||
length: u64,
|
|
||||||
} WGPUCompilationMessage;
|
|
||||||
|
|
||||||
typedef struct WGPUConstantEntry {
|
typedef struct WGPUConstantEntry {
|
||||||
next_in_chain: *const ChainedStruct,
|
next_in_chain: *const ChainedStruct,
|
||||||
char const * key;
|
char const * key;
|
||||||
|
|
|
||||||
|
|
@ -430,6 +430,16 @@ pub const Origin3D = extern struct {
|
||||||
z: u32 = 0,
|
z: u32 = 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const CompilationMessage = extern struct {
|
||||||
|
next_in_chain: *const ChainedStruct,
|
||||||
|
message: ?[*:0]const u8 = null,
|
||||||
|
type: CompilationMessageType,
|
||||||
|
line_num: u64,
|
||||||
|
line_pos: u64,
|
||||||
|
offset: u64,
|
||||||
|
length: u64,
|
||||||
|
};
|
||||||
|
|
||||||
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