CamelCase warning for vk_function
This commit is contained in:
parent
2fdec50947
commit
2ce185959b
|
@ -15,7 +15,6 @@ pub struct Win32Surface {
|
||||||
win32_surface_fn: vk::Win32SurfaceFn,
|
win32_surface_fn: vk::Win32SurfaceFn,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl Win32Surface {
|
impl Win32Surface {
|
||||||
pub fn new(entry: &Entry<V1_0>, instance: &Instance<V1_0>) -> Result<Win32Surface, Vec<&'static str>> {
|
pub fn new(entry: &Entry<V1_0>, instance: &Instance<V1_0>) -> Result<Win32Surface, Vec<&'static str>> {
|
||||||
let surface_fn = vk::Win32SurfaceFn::load(|name| {
|
let surface_fn = vk::Win32SurfaceFn::load(|name| {
|
||||||
|
|
|
@ -3638,6 +3638,7 @@ pub mod types {
|
||||||
// FIX: Need better error handling for extensions
|
// FIX: Need better error handling for extensions
|
||||||
macro_rules! vk_functions {
|
macro_rules! vk_functions {
|
||||||
($struct_name: ident, $($raw_name: expr, $name: ident ($($param_name: ident: $param: ty),*,) -> $ret: ty;)+) => {
|
($struct_name: ident, $($raw_name: expr, $name: ident ($($param_name: ident: $param: ty),*,) -> $ret: ty;)+) => {
|
||||||
|
#[allow(non_camel_case_types)]
|
||||||
pub struct $struct_name{
|
pub struct $struct_name{
|
||||||
$(
|
$(
|
||||||
$name: extern "system" fn ($($param_name: $param),*) -> $ret,
|
$name: extern "system" fn ($($param_name: $param),*) -> $ret,
|
||||||
|
|
Loading…
Reference in a new issue