Skip to content

Latest commit

 

History

History
71 lines (48 loc) · 2.74 KB

README.md

File metadata and controls

71 lines (48 loc) · 2.74 KB

🎬 rps-rs

A very lightweight wrapper around the Render Pipeline Shaders library 🦀

ProjectKML Crates.io Docs Dependency status Build status

Basic example

let device_create_info = rps::DeviceCreateInfo::default();
let runtime_create_info = rps::RuntimeDeviceCreateInfo::default();

let vk_functions = rps::VKFunctions::new(device.instance().loader(), device.loader());

let runtime_device_create_info = rps::VKRuntimeDeviceCreateInfo {
    device_create_info: &device_create_info,
    runtime_create_info: &runtime_create_info,
    vk_device: *device,
    vk_physical_device: *device.physical_device(),
    flags: rps::VKRuntimeFlags::DONT_FLIP_VIEWPORT,
    vk_functions: &vk_functions,
};

let rps_device = unsafe { rps::vk_runtime_device_create(&runtime_device_create_info) }?;

Contributing

Contributor Covenant

We welcome community contributions to this project.

Please read our Contributor Guide for more information on how to get started. Please also read our Contributor Terms before you make any contributions.

Any contribution intentionally submitted for inclusion in an ProjectKML project, shall comply with the Rust standard licensing model (MIT OR Apache 2.0) and therefore be dual licensed as described below, without any additional terms or conditions:

License

This contribution is dual licensed under EITHER OF

at your option.

Credits

  • AMD team for creating the Render Pipeline Shaders library
  • Embark Studios as my contributor guide is very similar to theirs.