From d32ad8e3b2a8f3c632594f9e27a9930aecf9788c Mon Sep 17 00:00:00 2001 From: chyyran Date: Mon, 6 Feb 2023 00:26:27 -0500 Subject: [PATCH] options: fix frame-direction docs --- librashader-runtime-d3d11/src/options.rs | 3 ++- librashader-runtime-d3d12/src/options.rs | 8 +++----- librashader-runtime-gl/src/options.rs | 3 ++- librashader-runtime-vk/src/options.rs | 3 ++- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/librashader-runtime-d3d11/src/options.rs b/librashader-runtime-d3d11/src/options.rs index db7a6a9..097b166 100644 --- a/librashader-runtime-d3d11/src/options.rs +++ b/librashader-runtime-d3d11/src/options.rs @@ -6,7 +6,8 @@ pub struct FrameOptionsD3D11 { /// Whether or not to clear the history buffers. pub clear_history: bool, - /// The direction of the frame. 1 should be vertical. + /// The direction of rendering. + /// -1 indicates that the frames are played in reverse order. pub frame_direction: i32, } diff --git a/librashader-runtime-d3d12/src/options.rs b/librashader-runtime-d3d12/src/options.rs index 3ae0a8b..3847833 100644 --- a/librashader-runtime-d3d12/src/options.rs +++ b/librashader-runtime-d3d12/src/options.rs @@ -6,7 +6,8 @@ pub struct FrameOptionsD3D12 { /// Whether or not to clear the history buffers. pub clear_history: bool, - /// The direction of the frame. 1 should be vertical. + /// The direction of rendering. + /// -1 indicates that the frames are played in reverse order. pub frame_direction: i32, } @@ -14,14 +15,11 @@ pub struct FrameOptionsD3D12 { #[repr(C)] #[derive(Debug, Clone)] pub struct FilterChainOptionsD3D12 { - /// Force the HLSL shader pipeline. This may reduce shader compatibility + /// Force the HLSL shader pipeline. This may reduce shader compatibility. pub force_hlsl_pipeline: bool, /// Whether or not to explicitly disable mipmap /// generation for intermediate passes regardless /// of shader preset settings. - /// - /// Mipmap generation Direct3D may be prohibitively expensive - /// on some hardware environments. pub force_no_mipmaps: bool, } diff --git a/librashader-runtime-gl/src/options.rs b/librashader-runtime-gl/src/options.rs index 084d964..f7ab097 100644 --- a/librashader-runtime-gl/src/options.rs +++ b/librashader-runtime-gl/src/options.rs @@ -6,7 +6,8 @@ pub struct FrameOptionsGL { /// Whether or not to clear the history buffers. pub clear_history: bool, - /// The direction of the frame. 1 should be vertical. + /// The direction of rendering. + /// -1 indicates that the frames are played in reverse order. pub frame_direction: i32, } diff --git a/librashader-runtime-vk/src/options.rs b/librashader-runtime-vk/src/options.rs index 3f26a7a..7d6a35f 100644 --- a/librashader-runtime-vk/src/options.rs +++ b/librashader-runtime-vk/src/options.rs @@ -6,7 +6,8 @@ pub struct FrameOptionsVulkan { /// Whether or not to clear the history buffers. pub clear_history: bool, - /// The direction of the frame. 1 should be vertical. + /// The direction of rendering. + /// -1 indicates that the frames are played in reverse order. pub frame_direction: i32, }