mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-25 00:04:15 +00:00
Allow non_snake_case for auto-generated structs (#796)
This commit is contained in:
parent
3911761c0a
commit
9f3f2dc000
@ -209,8 +209,10 @@ fn write_struct(doc: &parse::Spirv, struct_id: u32, members: &[u32]) -> (String,
|
||||
("".to_owned(), "")
|
||||
};
|
||||
|
||||
let s = format!("#[repr(C)]{derive_text}\npub struct {name} {{\n{members}\n}} /* total_size: \
|
||||
{t:?} */\n{impl_text}",
|
||||
let s = format!("#[repr(C)]\n\
|
||||
{derive_text}\n\
|
||||
#[allow(non_snake_case)]\n\
|
||||
pub struct {name} {{\n{members}\n}} /* total_size: {t:?} */\n{impl_text}",
|
||||
name = name,
|
||||
members = rust_members
|
||||
.iter()
|
||||
|
Loading…
Reference in New Issue
Block a user