@@ -20,7 +20,6 @@ impl From<PipelineLinkOptions> for optix_sys::OptixPipelineLinkOptions {
20
20
fn from ( o : PipelineLinkOptions ) -> Self {
21
21
optix_sys:: OptixPipelineLinkOptions {
22
22
maxTraceDepth : o. max_trace_depth ,
23
- debugLevel : o. debug_level as _ ,
24
23
}
25
24
}
26
25
}
@@ -143,7 +142,7 @@ pub enum CompileOptimizationLevel {
143
142
pub enum CompileDebugLevel {
144
143
#[ default]
145
144
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 ,
147
146
Full = optix_sys:: OptixCompileDebugLevel :: OPTIX_COMPILE_DEBUG_LEVEL_FULL as i32 ,
148
147
}
149
148
@@ -165,12 +164,16 @@ impl From<&ModuleCompileOptions> for optix_sys::OptixModuleCompileOptions {
165
164
debugLevel: o. debug_level as _,
166
165
boundValues: std:: ptr:: null( ) ,
167
166
numBoundValues: 0 ,
167
+ numPayloadTypes: 0 ,
168
+ payloadTypes: std:: ptr:: null( ) ,
168
169
}
169
170
} else {
170
171
optix_sys:: OptixModuleCompileOptions {
171
172
maxRegisterCount: o. max_register_count,
172
173
optLevel: o. opt_level as _,
173
174
debugLevel: o. debug_level as _,
175
+ numPayloadTypes: 0 ,
176
+ payloadTypes: std:: ptr:: null( ) ,
174
177
}
175
178
}
176
179
}
@@ -193,7 +196,6 @@ bitflags::bitflags! {
193
196
const STACK_OVERFLOW = optix_sys:: OptixExceptionFlags :: OPTIX_EXCEPTION_FLAG_STACK_OVERFLOW as i32 ;
194
197
const TRACE_DEPTH = optix_sys:: OptixExceptionFlags :: OPTIX_EXCEPTION_FLAG_TRACE_DEPTH as i32 ;
195
198
const USER = optix_sys:: OptixExceptionFlags :: OPTIX_EXCEPTION_FLAG_USER as i32 ;
196
- const DEBUG = optix_sys:: OptixExceptionFlags :: OPTIX_EXCEPTION_FLAG_DEBUG as i32 ;
197
199
}
198
200
}
199
201
@@ -260,10 +262,8 @@ impl PipelineCompileOptions {
260
262
std:: ptr:: null ( )
261
263
} ,
262
264
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 ,
267
267
}
268
268
}
269
269
@@ -317,7 +317,7 @@ impl Module {
317
317
318
318
let mut raw = std:: ptr:: null_mut ( ) ;
319
319
let res = unsafe {
320
- optix_call ! ( optixModuleCreateFromPTX (
320
+ optix_call ! ( optixModuleCreate (
321
321
ctx. raw,
322
322
& mopt as * const _,
323
323
& popt,
@@ -363,6 +363,8 @@ impl Module {
363
363
PrimitiveType :: Triangle => OPTIX_PRIMITIVE_TYPE_TRIANGLE ,
364
364
} ,
365
365
usesMotionBlur : if uses_motion_blur { 1 } else { 0 } ,
366
+ buildFlags : 0 ,
367
+ curveEndcapFlags : 0 ,
366
368
} ;
367
369
368
370
let mut raw = std:: ptr:: null_mut ( ) ;
@@ -501,7 +503,8 @@ impl ProgramGroup {
501
503
unsafe {
502
504
Ok ( optix_call ! ( optixProgramGroupGetStackSize(
503
505
self . raw,
504
- & mut stack_sizes as * mut _ as * mut _
506
+ & mut stack_sizes as * mut _ as * mut _,
507
+ std:: ptr:: null_mut( )
505
508
) )
506
509
. map ( |_| stack_sizes) ?)
507
510
}
@@ -523,10 +526,7 @@ impl ProgramGroup {
523
526
desc : & [ ProgramGroupDesc ] ,
524
527
) -> Result < ( Vec < ProgramGroup > , String ) > {
525
528
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 ( ) ,
530
530
} ;
531
531
532
532
let mut log = [ 0u8 ; 4096 ] ;
@@ -569,10 +569,7 @@ impl ProgramGroup {
569
569
desc : & ProgramGroupDesc ,
570
570
) -> Result < ( ProgramGroup , String ) > {
571
571
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 ( ) ,
576
573
} ;
577
574
578
575
let mut log = [ 0u8 ; 4096 ] ;
0 commit comments