@@ -20,7 +20,6 @@ impl From<PipelineLinkOptions> for optix_sys::OptixPipelineLinkOptions {
2020 fn from ( o : PipelineLinkOptions ) -> Self {
2121 optix_sys:: OptixPipelineLinkOptions {
2222 maxTraceDepth : o. max_trace_depth ,
23- debugLevel : o. debug_level as _ ,
2423 }
2524 }
2625}
@@ -143,7 +142,7 @@ pub enum CompileOptimizationLevel {
143142pub enum CompileDebugLevel {
144143 #[ default]
145144 None = optix_sys:: OptixCompileDebugLevel :: OPTIX_COMPILE_DEBUG_LEVEL_NONE as i32 ,
146- LineInfo = optix_sys:: OptixCompileDebugLevel :: OPTIX_COMPILE_DEBUG_LEVEL_LINEINFO as i32 ,
145+ LineInfo = optix_sys:: OptixCompileDebugLevel :: OPTIX_COMPILE_DEBUG_LEVEL_MINIMAL as i32 ,
147146 Full = optix_sys:: OptixCompileDebugLevel :: OPTIX_COMPILE_DEBUG_LEVEL_FULL as i32 ,
148147}
149148
@@ -165,12 +164,16 @@ impl From<&ModuleCompileOptions> for optix_sys::OptixModuleCompileOptions {
165164 debugLevel: o. debug_level as _,
166165 boundValues: std:: ptr:: null( ) ,
167166 numBoundValues: 0 ,
167+ numPayloadTypes: 0 ,
168+ payloadTypes: std:: ptr:: null( ) ,
168169 }
169170 } else {
170171 optix_sys:: OptixModuleCompileOptions {
171172 maxRegisterCount: o. max_register_count,
172173 optLevel: o. opt_level as _,
173174 debugLevel: o. debug_level as _,
175+ numPayloadTypes: 0 ,
176+ payloadTypes: std:: ptr:: null( ) ,
174177 }
175178 }
176179 }
@@ -193,7 +196,6 @@ bitflags::bitflags! {
193196 const STACK_OVERFLOW = optix_sys:: OptixExceptionFlags :: OPTIX_EXCEPTION_FLAG_STACK_OVERFLOW as i32 ;
194197 const TRACE_DEPTH = optix_sys:: OptixExceptionFlags :: OPTIX_EXCEPTION_FLAG_TRACE_DEPTH as i32 ;
195198 const USER = optix_sys:: OptixExceptionFlags :: OPTIX_EXCEPTION_FLAG_USER as i32 ;
196- const DEBUG = optix_sys:: OptixExceptionFlags :: OPTIX_EXCEPTION_FLAG_DEBUG as i32 ;
197199 }
198200}
199201
@@ -260,10 +262,8 @@ impl PipelineCompileOptions {
260262 std:: ptr:: null ( )
261263 } ,
262264 usesPrimitiveTypeFlags : self . primitive_type_flags . bits ( ) as u32 ,
263- #[ cfg( optix_pipeline_compile_options_reserved) ]
264- reserved : 0 ,
265- #[ cfg( optix_pipeline_compile_options_reserved) ]
266- reserved2 : 0 ,
265+ allowOpacityMicromaps : 0 ,
266+ allowClusteredGeometry : 0 ,
267267 }
268268 }
269269
@@ -317,7 +317,7 @@ impl Module {
317317
318318 let mut raw = std:: ptr:: null_mut ( ) ;
319319 let res = unsafe {
320- optix_call ! ( optixModuleCreateFromPTX (
320+ optix_call ! ( optixModuleCreate (
321321 ctx. raw,
322322 & mopt as * const _,
323323 & popt,
@@ -363,6 +363,8 @@ impl Module {
363363 PrimitiveType :: Triangle => OPTIX_PRIMITIVE_TYPE_TRIANGLE ,
364364 } ,
365365 usesMotionBlur : if uses_motion_blur { 1 } else { 0 } ,
366+ buildFlags : 0 ,
367+ curveEndcapFlags : 0 ,
366368 } ;
367369
368370 let mut raw = std:: ptr:: null_mut ( ) ;
@@ -501,7 +503,8 @@ impl ProgramGroup {
501503 unsafe {
502504 Ok ( optix_call ! ( optixProgramGroupGetStackSize(
503505 self . raw,
504- & mut stack_sizes as * mut _ as * mut _
506+ & mut stack_sizes as * mut _ as * mut _,
507+ std:: ptr:: null_mut( )
505508 ) )
506509 . map ( |_| stack_sizes) ?)
507510 }
@@ -523,10 +526,7 @@ impl ProgramGroup {
523526 desc : & [ ProgramGroupDesc ] ,
524527 ) -> Result < ( Vec < ProgramGroup > , String ) > {
525528 let pg_options = optix_sys:: OptixProgramGroupOptions {
526- #[ cfg( optix_program_group_options_reserved) ]
527- reserved : 0 ,
528- #[ cfg( not( optix_program_group_options_reserved) ) ]
529- placeholder : 0 ,
529+ payloadType : std:: ptr:: null ( ) ,
530530 } ;
531531
532532 let mut log = [ 0u8 ; 4096 ] ;
@@ -569,10 +569,7 @@ impl ProgramGroup {
569569 desc : & ProgramGroupDesc ,
570570 ) -> Result < ( ProgramGroup , String ) > {
571571 let pg_options = optix_sys:: OptixProgramGroupOptions {
572- #[ cfg( optix_program_group_options_reserved) ]
573- reserved : 0 ,
574- #[ cfg( not( optix_program_group_options_reserved) ) ]
575- placeholder : 0 ,
572+ payloadType : std:: ptr:: null ( ) ,
576573 } ;
577574
578575 let mut log = [ 0u8 ; 4096 ] ;
0 commit comments