pub unsafe fn shader_desc(vs: &str, fs: &str) -> ShaderDesc {
    let mut desc = ShaderDesc::default();

    desc.vs = ShaderStageDesc {
        source: vs.as_ptr() as *mut _,
        uniform_blocks: [Default::default(); ffi::SG_MAX_SHADERSTAGE_UBS as usize],
        images: [Default::default(); ffi::SG_MAX_SHADERSTAGE_IMAGES as usize],
        ..Default::default()
    };

    desc.fs = ShaderStageDesc {
        source: fs.as_ptr() as *mut _,
        uniform_blocks: [Default::default(); ffi::SG_MAX_SHADERSTAGE_UBS as usize],
        images: [Default::default(); ffi::SG_MAX_SHADERSTAGE_IMAGES as usize],
        ..Default::default()
    };

    desc
}
/// [Non-Sokol] Helper for making shaders
///
/// Caller must ensure the shader strings are null-terminated!
[Non-Sokol] Helper for making shaders
Caller must ensure the shader strings are null-terminated!
[ Non - Sokol ] Helper for making shaders Caller must ensure the shader strings are null - terminated!
pub unsafe fn shader_desc(vs: &str, fs: &str) -> ShaderDesc {
    let mut desc = ShaderDesc::default();
    desc.vs = ShaderStageDesc {
        source: vs.as_ptr() as *mut _,
        uniform_blocks: [Default::default(); ffi::SG_MAX_SHADERSTAGE_UBS as usize],
        images: [Default::default(); ffi::SG_MAX_SHADERSTAGE_IMAGES as usize],
        ..Default::default()
    };
    desc.fs = ShaderStageDesc {
        source: fs.as_ptr() as *mut _,
        uniform_blocks: [Default::default(); ffi::SG_MAX_SHADERSTAGE_UBS as usize],
        images: [Default::default(); ffi::SG_MAX_SHADERSTAGE_IMAGES as usize],
        ..Default::default()
    };
    desc
}
pub unsafe fn shader_desc ( vs : & str , fs : & str ) -> ShaderDesc { let mut desc = ShaderDesc :: default ( ) ; desc . vs = ShaderStageDesc { source : vs . as_ptr ( ) as * mut _ , uniform_blocks : [ Default :: default ( ) ; ffi :: SG_MAX_SHADERSTAGE_UBS as usize ] , images : [ Default :: default ( ) ; ffi :: SG_MAX_SHADERSTAGE_IMAGES as usize ] , .. Default :: default ( ) } ; desc . fs = ShaderStageDesc { source : fs . as_ptr ( ) as * mut _ , uniform_blocks : [ Default :: default ( ) ; ffi :: SG_MAX_SHADERSTAGE_UBS as usize ] , images : [ Default :: default ( ) ; ffi :: SG_MAX_SHADERSTAGE_IMAGES as usize ] , .. Default :: default ( ) } ; desc }
[Non-Sokol] Helper for making shaders
Caller must ensure the shader strings are null-terminated!
[ Non - Sokol ] Helper for making shaders Caller must ensure the shader strings are null - terminated!
vs
&str
fs
&str
vs
&str
fs
&str