gpu: add ShaderModule.Descriptor
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
80b8f9224c
commit
efae1c2b91
2 changed files with 7 additions and 5 deletions
|
|
@ -1,8 +1,3 @@
|
||||||
pub const WGPUShaderModuleDescriptor = extern struct {
|
|
||||||
next_in_chain: *const ChainedStruct,
|
|
||||||
label: ?[*:0]const u8 = null,
|
|
||||||
};
|
|
||||||
|
|
||||||
pub const WGPUShaderModuleSPIRVDescriptor = extern struct {
|
pub const WGPUShaderModuleSPIRVDescriptor = extern struct {
|
||||||
chain: ChainedStruct,
|
chain: ChainedStruct,
|
||||||
code_size: u32,
|
code_size: u32,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,13 @@
|
||||||
|
const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||||
|
|
||||||
pub const ShaderModule = enum(usize) {
|
pub const ShaderModule = enum(usize) {
|
||||||
_,
|
_,
|
||||||
|
|
||||||
// TODO: verify there is a use case for nullable value of this type.
|
// TODO: verify there is a use case for nullable value of this type.
|
||||||
pub const none: ShaderModule = @intToEnum(ShaderModule, 0);
|
pub const none: ShaderModule = @intToEnum(ShaderModule, 0);
|
||||||
|
|
||||||
|
pub const Descriptor = extern struct {
|
||||||
|
next_in_chain: *const ChainedStruct,
|
||||||
|
label: ?[*:0]const u8 = null,
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue