gpu: add ShaderModule.SPIRVDescriptor

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-16 20:07:34 -07:00 committed by Stephen Gutekanst
parent efae1c2b91
commit 25ac58ebc8
2 changed files with 6 additions and 6 deletions

View file

@ -1,9 +1,3 @@
pub const WGPUShaderModuleSPIRVDescriptor = extern struct {
chain: ChainedStruct,
code_size: u32,
code: [*]const u32,
};
pub const WGPUShaderModuleWGSLDescriptor = extern struct { pub const WGPUShaderModuleWGSLDescriptor = extern struct {
chain: ChainedStruct, chain: ChainedStruct,
source: [*:0]const u8, source: [*:0]const u8,

View file

@ -10,4 +10,10 @@ pub const ShaderModule = enum(usize) {
next_in_chain: *const ChainedStruct, next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null, label: ?[*:0]const u8 = null,
}; };
pub const SPIRVDescriptor = extern struct {
chain: ChainedStruct,
code_size: u32,
code: [*]const u32,
};
}; };