MCPcopy Create free account
hub / github.com/Rust-GPU/rust-cuda / new

Method new

crates/optix/src/acceleration.rs:786–797  ·  view source on GitHub ↗

Create a new AccelBuildOptions with the given flags and operation and no motion blur.

(build_flags: BuildFlags)

Source from the content-addressed store, hash-verified

784 /// Create a new AccelBuildOptions with the given flags and operation and
785 /// no motion blur.
786 pub fn new(build_flags: BuildFlags) -> Self {
787 AccelBuildOptions {
788 build_flags,
789 operation: BuildOperation::Build,
790 motion_options: MotionOptions {
791 num_keys: 1,
792 flags: MotionFlags::NONE,
793 time_begin: 0.0f32,
794 time_end: 1.0f32,
795 },
796 }
797 }
798
799 /// Set the build operation to either build or update
800 pub fn build_operation(mut self, op: BuildOperation) -> Self {

Callers

nothing calls this directly

Calls 12

newFunction · 0.85
memcpy_htodFunction · 0.85
iterMethod · 0.80
addMethod · 0.80
as_ptrMethod · 0.80
lenMethod · 0.45
as_rawMethod · 0.45
as_device_ptrMethod · 0.45
handleMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected