pub fn prepare_model(device: &mut VkDevice) -> VkResult<VkglTFModel> {

    use vkbase::gltf::{GltfModelInfo, load_gltf};
    use vkbase::gltf::{AttributeFlags, NodeAttachmentFlags};

    let model_info = GltfModelInfo {
        path: Path::new(MODEL_PATH),
        // specify model's vertices layout.
        attribute: AttributeFlags::POSITION | AttributeFlags::NORMAL | AttributeFlags::TEXCOORD_0,
        // specify model's node attachment layout.
        node: NodeAttachmentFlags::TRANSFORM_MATRIX,
        transform: None,
    };

    let model = load_gltf(device, model_info)?;
    Ok(model)
}
// Prepare model from glTF file.
Prepare model from glTF file.
Prepare model from glTF file .
pub fn prepare_model(device: &mut VkDevice) -> VkResult<VkglTFModel> {
    use vkbase::gltf::{GltfModelInfo, load_gltf};
    use vkbase::gltf::{AttributeFlags, NodeAttachmentFlags};
    let model_info = GltfModelInfo {
        path: Path::new(MODEL_PATH),
        // specify model's vertices layout.
        attribute: AttributeFlags::POSITION | AttributeFlags::NORMAL | AttributeFlags::TEXCOORD_0,
        // specify model's node attachment layout.
        node: NodeAttachmentFlags::TRANSFORM_MATRIX,
        transform: None,
    };
    let model = load_gltf(device, model_info)?;
    Ok(model)
}
pub fn prepare_model ( device : & mut VkDevice ) -> VkResult < VkglTFModel > { use vkbase :: gltf :: { GltfModelInfo , load_gltf } ; use vkbase :: gltf :: { AttributeFlags , NodeAttachmentFlags } ; let model_info = GltfModelInfo { path : Path :: new ( MODEL_PATH ) , // specify model's vertices layout. attribute : AttributeFlags :: POSITION | AttributeFlags :: NORMAL | AttributeFlags :: TEXCOORD_0 , // specify model's node attachment layout. node : NodeAttachmentFlags :: TRANSFORM_MATRIX , transform : None , } ; let model = load_gltf ( device , model_info ) ? ; Ok ( model ) }
Prepare model from glTF file.
Prepare model from glTF file .
device
&mut VkDevice
device
&mut VkDevice