Skip to content

rust-wiiu/gfd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

GFD - Nintendo Wii U™ Shader Binary Format

Unlike more modern graphics APIs the Nintendo Wii U does not have a online shader compiler, so the shaders have to be pre-compiled, stored, and embedded into the program or stored in the file system. The most common format for such shader binaries is GFD (.gsh / .gtx). This crate enables easy serializing / deserializing of the binary format.

This crate does not provide a shader compiler.

Usage

use gfd::GFD;
use std::fs;

let file = fs::read("shader.gsh").unwrap();
let gfd = GFD::try_from(file.as_ref()).unwrap();

The crate is no_std by default. std features of deku, the underlying binary parser, can be enabled with the std feature flag.

Sources

About

Read and write GFD shader binaries.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors

Languages