Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Twinklebear/oidn-rs
/ functions
Functions
153 in github.com/Twinklebear/oidn-rs
⨍
Functions
153
◇
Types & classes
20
↓ 37 callers
Function
buffer_or_skip
(device: &crate::Device, contents: &[f32])
src/tests.rs:4
↓ 29 callers
Function
assert_device_ok
(device: &crate::Device)
src/tests.rs:26
↓ 17 callers
Method
image_dimensions
sets the dimensions of the denoising image, if new width * new height does not equal old width * old height
src/filter.rs:228
↓ 16 callers
Method
filter
(&self, color: &[f32], output: &mut [f32])
src/filter.rs:249
↓ 8 callers
Method
clone
(&self)
src/buffer.rs:224
↓ 8 callers
Method
create_buffer
Creates a new buffer from a slice, returns None if buffer creation failed
src/buffer.rs:21
↓ 8 callers
Method
same_device_as_buf
(&self, buf: &Buffer)
src/buffer.rs:75
↓ 8 callers
Method
write
Writes to the buffer, returns [None] if the sizes mismatch
src/buffer.rs:154
↓ 7 callers
Method
wait
Blocks until the asynchronous filter execution has completed.
src/filter.rs:502
↓ 6 callers
Method
albedo
Set an input auxiliary image containing the albedo per pixel (three channels, values in `[0, 1]`). # Panics - if resource creation fails
src/filter.rs:92
↓ 5 callers
Method
albedo_normal
Set input auxiliary images containing the albedo and normals. Albedo must have three channels per pixel with values in [0, 1]. Normal must contain th
src/filter.rs:65
↓ 5 callers
Method
srgb
Set whether the color is encoded with the sRGB (or 2.2 gamma) curve (LDR only) or is linear. The output will be encoded with the same curve.
src/filter.rs:175
↓ 4 callers
Method
finish
(&mut self)
src/buffer.rs:267
↓ 4 callers
Method
get_error
(&self)
src/device.rs:75
↓ 4 callers
Function
package_version
(root: &std::path::Path)
shared/helper.rs:251
↓ 4 callers
Function
run_cargo
( root: &Path, args: &[&str], extra_args: &[OsString], envs: &[(String, OsString)], )
xtask/src/main.rs:113
↓ 3 callers
Method
create_buffer_with_storage
Creates a new uninitialized buffer with the requested storage mode. The size is expressed as a number of `f32` values to match the rest of the safe b
src/buffer.rs:44
↓ 3 callers
Method
execute_filter_buffer
(&self, color: Option<&Buffer>, output: &Buffer)
src/filter.rs:325
↓ 3 callers
Method
filter_buffer
(&self, color: &Buffer, output: &Buffer)
src/filter.rs:253
↓ 3 callers
Method
filter_buffer_async
Starts filtering buffer-backed images asynchronously. The returned guard keeps the filter and buffers borrowed until the device has been synchronized
src/filter.rs:269
↓ 3 callers
Method
hdr
Set whether the color is HDR.
src/filter.rs:147
↓ 3 callers
Function
load_exr
Load an EXR file to an RGB f32 buffer
examples/denoise_exr.rs:87
↓ 3 callers
Method
raw
# Safety Raw buffer must not be made invalid (e.g. by destroying it)
src/buffer.rs:194
↓ 3 callers
Method
read_buffer_async
Starts an asynchronous read from an OIDN buffer. The returned guard keeps the buffer and destination slice borrowed until the device has been synchro
src/buffer.rs:127
↓ 3 callers
Method
sync
Waits until all asynchronous operations on the device have completed.
src/device.rs:87
↓ 3 callers
Method
write_buffer_async
Starts an asynchronous write to an OIDN buffer. The returned guard keeps the buffer and source slice borrowed until the device has been synchronized.
src/buffer.rs:91
↓ 2 callers
Method
configure_filter_buffer
( &self, color: Option<&Buffer>, output: &Buffer, )
src/filter.rs:350
↓ 2 callers
Method
create_buffer_from_raw
# Safety Raw buffer must not be invalid (e.g. destroyed, null ect.) Raw buffer must have been created by this device
src/buffer.rs:64
↓ 2 callers
Function
download_and_extract_oidn
( root: &std::path::Path, )
shared/helper.rs:30
↓ 2 callers
Method
execute_filter
(&self, color: Option<&[f32]>, output: &mut [f32])
src/filter.rs:304
↓ 2 callers
Method
execute_filter_buffer_async
( &'filter mut self, color: Option<&'filter Buffer>, output: &'filter mut Buffer,
src/filter.rs:333
↓ 2 callers
Method
filter_in_place
(&self, color: &mut [f32])
src/filter.rs:277
↓ 2 callers
Method
filter_in_place_buffer_async
Starts in-place filtering on a buffer asynchronously. The returned guard keeps the filter and buffer borrowed until the device has been synchronized.
src/filter.rs:297
↓ 2 callers
Method
filter_quality
Sets the quality of the output, the default is high. Balanced lowers the precision, if possible, however some devices will not support this and so th
src/filter.rs:51
↓ 2 callers
Method
finish
(&mut self)
src/filter.rs:506
↓ 2 callers
Function
get_handle
(device_type: OIDNDeviceType)
src/device.rs:110
↓ 2 callers
Method
input_scale
Sets a scale to apply to input values before filtering, without scaling the output too. This can be used to map color or auxiliary feature values to
src/filter.rs:166
↓ 2 callers
Function
non_empty_env_path
(name: &str)
shared/helper.rs:23
↓ 2 callers
Function
oidn_dir
(root: &std::path::Path)
shared/helper.rs:1
↓ 2 callers
Function
oidn_environment
(root: &Path)
xtask/src/main.rs:151
↓ 2 callers
Function
oidn_package_dirs
(root: &std::path::Path, version: &str)
shared/helper.rs:16
↓ 2 callers
Function
platform_package_suffixes
()
shared/helper.rs:270
↓ 2 callers
Method
read_to_slice
Reads from the buffer to the array, returns [None] if the sizes mismatch
src/buffer.rs:167
↓ 2 callers
Function
safe_archive_path
( root: &std::path::Path, entry_name: &std::path::Path, )
shared/helper.rs:225
↓ 2 callers
Function
tonemap_kernel
(x: f32)
examples/denoise_exr.rs:48
↓ 2 callers
Function
verify_sha256
( path: &std::path::Path, expected_hex: &str, )
shared/helper.rs:124
↓ 2 callers
Function
workspace_path
(root: &Path, path: &OsStr)
xtask/src/main.rs:339
↓ 1 callers
Function
appended_path
(variable: &str, path: &Path)
xtask/src/main.rs:247
↓ 1 callers
Method
as_raw_oidn_quality
(&self)
src/lib.rs:75
↓ 1 callers
Method
as_raw_oidn_storage
(&self)
src/lib.rs:96
↓ 1 callers
Function
build_examples
(root: &Path, extra_args: &[OsString])
xtask/src/main.rs:67
↓ 1 callers
Function
build_test
(root: &Path, extra_args: &[OsString])
xtask/src/main.rs:72
↓ 1 callers
Method
clean_aux
Set whether the auxiliary feature (albedo, normal) images are noise-free. Recommended for highest quality but should not be enabled for noisy auxilia
src/filter.rs:185
↓ 1 callers
Method
clear_weights
Clear any previously supplied custom model weights.
src/filter.rs:211
↓ 1 callers
Function
collect_target_oidn_headers
(dir: &Path, headers: &mut Vec<PathBuf>)
xtask/src/main.rs:219
↓ 1 callers
Function
configure_bundled
()
build.rs:57
↓ 1 callers
Function
configure_system
()
build.rs:22
↓ 1 callers
Function
contains_libclang
(dir: &Path)
xtask/src/main.rs:317
↓ 1 callers
Function
copy_runtime_libraries
(oidn_dir: &std::path::Path)
build.rs:98
↓ 1 callers
Function
default_llvm_dirs
()
xtask/src/main.rs:272
↓ 1 callers
Function
detect_libclang_dir
()
xtask/src/main.rs:255
↓ 1 callers
Function
download_archive
( archive_path: &std::path::Path, url: &str, )
shared/helper.rs:111
↓ 1 callers
Function
download_oidn_package
(root: &Path, _args: &[OsString])
xtask/src/main.rs:107
↓ 1 callers
Function
ensure_archive
( archive_path: &std::path::Path, url: &str, expected_sha: &str, )
shared/helper.rs:86
↓ 1 callers
Function
extract_archive
( root: &std::path::Path, archive_path: &std::path::Path, )
shared/helper.rs:146
↓ 1 callers
Function
extract_tar_gz_archive
( root: &std::path::Path, archive_path: &std::path::Path, )
shared/helper.rs:201
↓ 1 callers
Function
extract_zip_archive
( root: &std::path::Path, archive_path: &std::path::Path, )
shared/helper.rs:165
↓ 1 callers
Method
filter_in_place_buffer
(&self, color: &Buffer)
src/filter.rs:281
↓ 1 callers
Function
find_bundled_oidn_dir
(root: &std::path::Path)
shared/helper.rs:61
↓ 1 callers
Function
find_oidn_header
(root: &Path)
xtask/src/main.rs:171
↓ 1 callers
Function
find_target_oidn_headers
(target_dir: &Path)
xtask/src/main.rs:213
↓ 1 callers
Function
generate_bindings
(header: &Path, output: &Path)
xtask/src/main.rs:356
↓ 1 callers
Function
generate_sys_bindings
(root: &Path, args: &[OsString])
xtask/src/main.rs:82
↓ 1 callers
Method
hdr_scale
(&mut self, hdr_scale: f32)
src/filter.rs:153
↓ 1 callers
Function
header_candidates
(root: &Path)
xtask/src/main.rs:181
↓ 1 callers
Function
is_runtime_library
(path: &std::path::Path)
build.rs:166
↓ 1 callers
Function
libclang_file_names
()
xtask/src/main.rs:323
↓ 1 callers
Function
linear_to_srgb
(x: f32)
examples/denoise_exr.rs:40
↓ 1 callers
Function
llvm_env_dirs
()
xtask/src/main.rs:263
↓ 1 callers
Function
package_asset_info
()
shared/helper.rs:298
↓ 1 callers
Function
package_asset_info_for_target
()
shared/helper.rs:303
↓ 1 callers
Function
python_libclang_dir
(python: &str, script: &str)
xtask/src/main.rs:304
↓ 1 callers
Function
python_libclang_dirs
()
xtask/src/main.rs:296
↓ 1 callers
Method
read
Reads from the buffer
src/buffer.rs:180
↓ 1 callers
Function
run
()
xtask/src/main.rs:40
↓ 1 callers
Function
run_command
( root: &Path, program: &str, args: &[OsString], envs: &[(String, OsString)], )
xtask/src/main.rs:124
↓ 1 callers
Function
runtime_library_path
(oidn_dir: &Path)
xtask/src/main.rs:238
↓ 1 callers
Method
set_pixel
(&mut self, x: usize, y: usize, pixel: (f32, f32, f32, f32))
examples/denoise_exr.rs:78
↓ 1 callers
Function
storage_buffer_or_skip
(device: &crate::Device, len: usize, storage: Storage)
src/tests.rs:15
↓ 1 callers
Function
tonemap
(x: f32)
examples/denoise_exr.rs:58
↓ 1 callers
Method
weights
Set custom trained model weights for the RT filter. The bytes are copied and kept alive by the filter until new weights are supplied or [RayTracing::
src/filter.rs:194
↓ 1 callers
Function
workspace_root
()
xtask/src/main.rs:331
Method
albedo_buffer
Set an input auxiliary buffer containing the albedo per pixel (three channels, values in `[0, 1]`). This function is the same as [RayTracing::albedo]
src/filter.rs:137
Method
albedo_normal_buffer
Set input auxiliary buffer containing the albedo and normals. Albedo buffer must have three channels per pixel with values in [0, 1]. Normal must con
src/filter.rs:115
Function
albedo_only_filter_executes_without_normal
()
src/tests.rs:391
Function
assert_send
()
src/tests.rs:32
Function
auxiliary_buffer_setters_reject_foreign_devices
()
src/tests.rs:567
Function
buffer_async_guards_sync_on_drop
()
src/tests.rs:209
Function
buffer_async_read_write_waits_for_completion
()
src/tests.rs:159
Function
buffer_async_rejects_mismatched_lengths_and_devices
()
src/tests.rs:187
next →
1–100 of 153, ranked by callers