Sets the stack sizes for a pipeline. Users are encouraged to see the programming guide and the implementations of the helper functions to understand how to construct the stack sizes based on their particular needs. If this method is not used, an internal default implementation is used. The default implementation is correct (but not necessarily optimal) as long as the maximum depth of call trees o
(
&self,
direct_callable_stack_size_from_traversable: u32,
direct_callable_stack_size_from_state: u32,
continuation_stack_size: u32,
max_traversable_graph_depth
| 112 | /// graph |
| 113 | /// passed to trace |
| 114 | pub fn set_stack_size( |
| 115 | &self, |
| 116 | direct_callable_stack_size_from_traversable: u32, |
| 117 | direct_callable_stack_size_from_state: u32, |
| 118 | continuation_stack_size: u32, |
| 119 | max_traversable_graph_depth: u32, |
| 120 | ) -> Result<()> { |
| 121 | unsafe { |
| 122 | Ok(optix_call!(optixPipelineSetStackSize( |
| 123 | self.raw, |
| 124 | direct_callable_stack_size_from_traversable, |
| 125 | direct_callable_stack_size_from_state, |
| 126 | continuation_stack_size, |
| 127 | max_traversable_graph_depth, |
| 128 | ))?) |
| 129 | } |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | #[repr(transparent)] |