CamelCase warning for vk_function

This commit is contained in:
maik klein 2017-01-01 08:52:08 +01:00
parent 2fdec50947
commit 2ce185959b
2 changed files with 1 additions and 1 deletions

View file

@ -15,7 +15,6 @@ pub struct Win32Surface {
win32_surface_fn: vk::Win32SurfaceFn,
}
impl Win32Surface {
pub fn new(entry: &Entry<V1_0>, instance: &Instance<V1_0>) -> Result<Win32Surface, Vec<&'static str>> {
let surface_fn = vk::Win32SurfaceFn::load(|name| {

View file

@ -3638,6 +3638,7 @@ pub mod types {
// FIX: Need better error handling for extensions
macro_rules! vk_functions {
($struct_name: ident, $($raw_name: expr, $name: ident ($($param_name: ident: $param: ty),*,) -> $ret: ty;)+) => {
#[allow(non_camel_case_types)]
pub struct $struct_name{
$(
$name: extern "system" fn ($($param_name: $param),*) -> $ret,