Change code function of VkShaderModule to take &[u32] according to spec
This commit is contained in:
parent
deb83f4b2e
commit
b0864e5c44
|
@ -1337,8 +1337,8 @@ pub fn derive_setters(_struct: &vkxml::Struct) -> Option<Tokens> {
|
||||||
// Unique cases
|
// Unique cases
|
||||||
if name == "pCode" {
|
if name == "pCode" {
|
||||||
return Some(quote!{
|
return Some(quote!{
|
||||||
pub fn code(mut self, code: &'a [u8]) -> #name_builder<'a> {
|
pub fn code(mut self, code: &'a [u32]) -> #name_builder<'a> {
|
||||||
self.inner.code_size = code.len();
|
self.inner.code_size = code.len() * 4;
|
||||||
self.inner.p_code = code.as_ptr() as *const u32;
|
self.inner.p_code = code.as_ptr() as *const u32;
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue