This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Computer Information: | |
Manufacturer: ASRock | |
Model: B450 Pro4 | |
Form Factor: Desktop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: AuthenticAMD | |
CPU Brand: AMD Ryzen 5 2600 Six-Core Processor | |
CPU Family: 0x17 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use colored::{Color, Colorize}; | |
use log::{Level, Metadata, Record}; | |
pub struct ConsoleLogger; | |
impl log::Log for ConsoleLogger { | |
fn enabled(&self, metadata: &Metadata) -> bool { | |
metadata.level() <= Level::Info | |
} | |
fn log(&self, record: &Record) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use shaderc::{CompileOptions, Compiler, IncludeType, ResolvedInclude, ShaderKind}; | |
use std::fs::File; | |
use std::io::{Read, Write}; | |
use std::path::PathBuf; | |
/// Compile glsl shaders in src/shaders and output spirv binaries to assets/shader_binares. | |
/// Requirements: | |
/// - Entry point must be "main". | |
/// - File extensions must be in the format FILE_NAME.SHADER_STAGE | |
/// If you install the shaderc libraries on your system you can avoid compiling them in |