pub struct Evaluator;Implementations§
Source§impl Evaluator
impl Evaluator
pub fn is_active(&self) -> bool
Sourcepub fn optimal_render_extent(
&self,
_output_extent: [u32; 2],
_quality: DlssRrQuality,
) -> Result<[u32; 2]>
pub fn optimal_render_extent( &self, _output_extent: [u32; 2], _quality: DlssRrQuality, ) -> Result<[u32; 2]>
§Errors
Always returns an error because the native backend is unavailable.
Sourcepub unsafe fn evaluate(
&self,
_command_buffer: CommandBuffer,
_frame: &DlssRrFrameConstants,
_resources: &DlssRrResources,
_quality: DlssRrQuality,
) -> Result<()>
pub unsafe fn evaluate( &self, _command_buffer: CommandBuffer, _frame: &DlssRrFrameConstants, _resources: &DlssRrResources, _quality: DlssRrQuality, ) -> Result<()>
§Safety
This evaluator and its owning NGX context must remain valid until execution completes. The
command buffer must be recording on the context’s device; every image and view must belong
to that device, and each declared layout must match its actual state. Image ranges,
formats, and extents must describe their views accurately. Before evaluation,
transition all inputs (including depth and the reflection guide) to
SHADER_READ_ONLY_OPTIMAL and the output to GENERAL. Evaluation leaves these
layouts unchanged; this wrapper does not record layout transitions. All handles must
remain valid until GPU execution completes. If dimensions or quality change, prior
evaluations must have completed first.
§Errors
Always returns an error because the native backend is unavailable.