2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-21 19:39:13 +00:00

Minor fixes, more CModel RE

This commit is contained in:
2022-02-01 00:14:49 -08:00
parent e48435f11e
commit 3ba2c4bfff
4 changed files with 112 additions and 46 deletions

View File

@@ -272,28 +272,6 @@ impl RendererConfig<'_> {
pub fn new_srgb() -> Self {
Self::with_combined_shaders(include_wgsl!("imgui.wgsl"), FS_ENTRY_POINT_SRGB)
}
/// Create a new renderer config with precompiled default shaders outputting linear color.
///
/// If you write to a Bgra8UnormSrgb framebuffer, this is what you want.
pub fn new_spv() -> Self {
Self::with_separate_shaders(
include_spirv_raw!("imgui_vs_main.spv"),
include_spirv_raw!("imgui_fs_main_linear.spv"),
FS_ENTRY_POINT_LINEAR,
)
}
/// Create a new renderer config with precompiled default shaders outputting srgb color.
///
/// If you write to a Bgra8Unorm framebuffer, this is what you want.
pub fn new_spv_srgb() -> Self {
Self::with_separate_shaders(
include_spirv_raw!("imgui_vs_main.spv"),
include_spirv_raw!("imgui_fs_main_srgb.spv"),
FS_ENTRY_POINT_SRGB,
)
}
}
pub struct Renderer {