ash_shader_creator

Crates.ioash_shader_creator
lib.rsash_shader_creator
version1.4.1
sourcesrc
created_at2021-08-14 20:49:22.134542
updated_at2021-08-15 14:17:24.416595
descriptionA library for easy to way automatically create multiple shader stages from the directory path.
homepage
repositoryhttps://github.com/Jerrody/ash_shader_creator
max_upload_size
id436980
size24,261
George (Jerrody)

documentation

https://docs.rs/ash_shader_creator/1.4.1/ash_shader_creator/

README

ash_shader_creator

A library for easy to way automatically create multiple shader stages from the directory path.

use ash::{Device, PipelineShaderStageCreateFlags, PipelineShaderStageCreateInfo};
use std::path::Path;

let shader_stage_flags = PipelineShaderStageCreateFlags::RESERVED_2_NV | PipelineShaderStageCreateFlags::ALLOW_VARYING_SUBGROUP_SIZE_EXT;
let shader_stages_create_info: Vec<PipelineShaderStageCreateInfo> =
    ShaderStage::new(&device, &Path::new("example_path/compiled_shaders"))
        .with_shader_stage_flags(shader_stage_flags)
        .build();

What the library can do?

  • Supports GLSL
  • Supports HLSL
  • Creating shaders from multiple directories

Important

For today, library can creates only shader stages from the names of compiled shaders that have:

  • For the GLSL: <file_name>.vert.spv for the vertex shader and <file_name>.frag.spv for the fragment shader.
  • For the HLSL: <file_name>.vs for the vertex shader and <file_name>.fs for the fragment shader.

Contacts

Discord: Жоржик#1991

Commit count: 0

cargo fmt