@@ -188,9 +188,9 @@ impl OptixResult {
188
188
}
189
189
#[ repr( transparent) ]
190
190
#[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
191
- pub struct OptixResult ( pub :: std:: os:: raw:: c_int ) ;
191
+ pub struct OptixResult ( pub :: std:: os:: raw:: c_uint ) ;
192
192
pub mod OptixDeviceProperty {
193
- pub type Type = :: std:: os:: raw:: c_int ;
193
+ pub type Type = :: std:: os:: raw:: c_uint ;
194
194
pub const OPTIX_DEVICE_PROPERTY_LIMIT_MAX_TRACE_DEPTH : Type = 8193 ;
195
195
pub const OPTIX_DEVICE_PROPERTY_LIMIT_MAX_TRAVERSABLE_GRAPH_DEPTH : Type = 8194 ;
196
196
pub const OPTIX_DEVICE_PROPERTY_LIMIT_MAX_PRIMITIVES_PER_GAS : Type = 8195 ;
@@ -212,8 +212,8 @@ pub type OptixLogCallback = ::std::option::Option<
212
212
pub const OptixDeviceContextValidationMode_OPTIX_DEVICE_CONTEXT_VALIDATION_MODE_OFF :
213
213
OptixDeviceContextValidationMode = 0 ;
214
214
pub const OptixDeviceContextValidationMode_OPTIX_DEVICE_CONTEXT_VALIDATION_MODE_ALL :
215
- OptixDeviceContextValidationMode = - 1 ;
216
- pub type OptixDeviceContextValidationMode = :: std:: os:: raw:: c_int ;
215
+ OptixDeviceContextValidationMode = 4294967295 ;
216
+ pub type OptixDeviceContextValidationMode = :: std:: os:: raw:: c_uint ;
217
217
#[ repr( C ) ]
218
218
#[ derive( Debug , Copy , Clone , PartialEq ) ]
219
219
pub struct OptixDeviceContextOptions {
@@ -233,22 +233,22 @@ impl Default for OptixDeviceContextOptions {
233
233
}
234
234
pub const OptixHitKind_OPTIX_HIT_KIND_TRIANGLE_FRONT_FACE : OptixHitKind = 254 ;
235
235
pub const OptixHitKind_OPTIX_HIT_KIND_TRIANGLE_BACK_FACE : OptixHitKind = 255 ;
236
- pub type OptixHitKind = :: std:: os:: raw:: c_int ;
236
+ pub type OptixHitKind = :: std:: os:: raw:: c_uint ;
237
237
pub const OptixIndicesFormat_OPTIX_INDICES_FORMAT_NONE : OptixIndicesFormat = 0 ;
238
238
pub const OptixIndicesFormat_OPTIX_INDICES_FORMAT_UNSIGNED_SHORT3 : OptixIndicesFormat = 8450 ;
239
239
pub const OptixIndicesFormat_OPTIX_INDICES_FORMAT_UNSIGNED_INT3 : OptixIndicesFormat = 8451 ;
240
- pub type OptixIndicesFormat = :: std:: os:: raw:: c_int ;
240
+ pub type OptixIndicesFormat = :: std:: os:: raw:: c_uint ;
241
241
pub const OptixVertexFormat_OPTIX_VERTEX_FORMAT_NONE : OptixVertexFormat = 0 ;
242
242
pub const OptixVertexFormat_OPTIX_VERTEX_FORMAT_FLOAT3 : OptixVertexFormat = 8481 ;
243
243
pub const OptixVertexFormat_OPTIX_VERTEX_FORMAT_FLOAT2 : OptixVertexFormat = 8482 ;
244
244
pub const OptixVertexFormat_OPTIX_VERTEX_FORMAT_HALF3 : OptixVertexFormat = 8483 ;
245
245
pub const OptixVertexFormat_OPTIX_VERTEX_FORMAT_HALF2 : OptixVertexFormat = 8484 ;
246
246
pub const OptixVertexFormat_OPTIX_VERTEX_FORMAT_SNORM16_3 : OptixVertexFormat = 8485 ;
247
247
pub const OptixVertexFormat_OPTIX_VERTEX_FORMAT_SNORM16_2 : OptixVertexFormat = 8486 ;
248
- pub type OptixVertexFormat = :: std:: os:: raw:: c_int ;
248
+ pub type OptixVertexFormat = :: std:: os:: raw:: c_uint ;
249
249
pub const OptixTransformFormat_OPTIX_TRANSFORM_FORMAT_NONE : OptixTransformFormat = 0 ;
250
250
pub const OptixTransformFormat_OPTIX_TRANSFORM_FORMAT_MATRIX_FLOAT12 : OptixTransformFormat = 8673 ;
251
- pub type OptixTransformFormat = :: std:: os:: raw:: c_int ;
251
+ pub type OptixTransformFormat = :: std:: os:: raw:: c_uint ;
252
252
#[ repr( C ) ]
253
253
pub struct OptixBuildInputTriangleArray {
254
254
pub vertexBuffers : * const CUdeviceptr ,
@@ -283,7 +283,7 @@ pub const OptixPrimitiveType_OPTIX_PRIMITIVE_TYPE_ROUND_QUADRATIC_BSPLINE: Optix
283
283
pub const OptixPrimitiveType_OPTIX_PRIMITIVE_TYPE_ROUND_CUBIC_BSPLINE : OptixPrimitiveType = 9474 ;
284
284
pub const OptixPrimitiveType_OPTIX_PRIMITIVE_TYPE_ROUND_LINEAR : OptixPrimitiveType = 9475 ;
285
285
pub const OptixPrimitiveType_OPTIX_PRIMITIVE_TYPE_TRIANGLE : OptixPrimitiveType = 9521 ;
286
- pub type OptixPrimitiveType = :: std:: os:: raw:: c_int ;
286
+ pub type OptixPrimitiveType = :: std:: os:: raw:: c_uint ;
287
287
pub const OptixPrimitiveTypeFlags_OPTIX_PRIMITIVE_TYPE_FLAGS_CUSTOM : OptixPrimitiveTypeFlags = 1 ;
288
288
pub const OptixPrimitiveTypeFlags_OPTIX_PRIMITIVE_TYPE_FLAGS_ROUND_QUADRATIC_BSPLINE :
289
289
OptixPrimitiveTypeFlags = 2 ;
@@ -369,7 +369,7 @@ pub const OptixBuildInputType_OPTIX_BUILD_INPUT_TYPE_CUSTOM_PRIMITIVES: OptixBui
369
369
pub const OptixBuildInputType_OPTIX_BUILD_INPUT_TYPE_INSTANCES : OptixBuildInputType = 8515 ;
370
370
pub const OptixBuildInputType_OPTIX_BUILD_INPUT_TYPE_INSTANCE_POINTERS : OptixBuildInputType = 8516 ;
371
371
pub const OptixBuildInputType_OPTIX_BUILD_INPUT_TYPE_CURVES : OptixBuildInputType = 8517 ;
372
- pub type OptixBuildInputType = :: std:: os:: raw:: c_int ;
372
+ pub type OptixBuildInputType = :: std:: os:: raw:: c_uint ;
373
373
#[ repr( C ) ]
374
374
pub struct OptixBuildInput__bindgen_ty_1 {
375
375
pub triangleArray : __BindgenUnionField < OptixBuildInputTriangleArray > ,
@@ -395,7 +395,7 @@ pub const OptixInstanceFlags_OPTIX_INSTANCE_FLAG_FLIP_TRIANGLE_FACING: OptixInst
395
395
pub const OptixInstanceFlags_OPTIX_INSTANCE_FLAG_DISABLE_ANYHIT : OptixInstanceFlags = 4 ;
396
396
pub const OptixInstanceFlags_OPTIX_INSTANCE_FLAG_ENFORCE_ANYHIT : OptixInstanceFlags = 8 ;
397
397
pub const OptixInstanceFlags_OPTIX_INSTANCE_FLAG_DISABLE_TRANSFORM : OptixInstanceFlags = 64 ;
398
- pub type OptixInstanceFlags = :: std:: os:: raw:: c_int ;
398
+ pub type OptixInstanceFlags = :: std:: os:: raw:: c_uint ;
399
399
#[ repr( C ) ]
400
400
#[ derive( Debug , Default , Copy , Clone , PartialEq ) ]
401
401
pub struct OptixInstance {
@@ -414,14 +414,14 @@ pub const OptixBuildFlags_OPTIX_BUILD_FLAG_PREFER_FAST_TRACE: OptixBuildFlags =
414
414
pub const OptixBuildFlags_OPTIX_BUILD_FLAG_PREFER_FAST_BUILD : OptixBuildFlags = 8 ;
415
415
pub const OptixBuildFlags_OPTIX_BUILD_FLAG_ALLOW_RANDOM_VERTEX_ACCESS : OptixBuildFlags = 16 ;
416
416
pub const OptixBuildFlags_OPTIX_BUILD_FLAG_ALLOW_RANDOM_INSTANCE_ACCESS : OptixBuildFlags = 32 ;
417
- pub type OptixBuildFlags = :: std:: os:: raw:: c_int ;
417
+ pub type OptixBuildFlags = :: std:: os:: raw:: c_uint ;
418
418
pub const OptixBuildOperation_OPTIX_BUILD_OPERATION_BUILD : OptixBuildOperation = 8545 ;
419
419
pub const OptixBuildOperation_OPTIX_BUILD_OPERATION_UPDATE : OptixBuildOperation = 8546 ;
420
- pub type OptixBuildOperation = :: std:: os:: raw:: c_int ;
420
+ pub type OptixBuildOperation = :: std:: os:: raw:: c_uint ;
421
421
pub const OptixMotionFlags_OPTIX_MOTION_FLAG_NONE : OptixMotionFlags = 0 ;
422
422
pub const OptixMotionFlags_OPTIX_MOTION_FLAG_START_VANISH : OptixMotionFlags = 1 ;
423
423
pub const OptixMotionFlags_OPTIX_MOTION_FLAG_END_VANISH : OptixMotionFlags = 2 ;
424
- pub type OptixMotionFlags = :: std:: os:: raw:: c_int ;
424
+ pub type OptixMotionFlags = :: std:: os:: raw:: c_uint ;
425
425
#[ repr( C ) ]
426
426
#[ derive( Debug , Default , Copy , Clone , PartialEq ) ]
427
427
pub struct OptixMotionOptions {
@@ -455,7 +455,7 @@ pub struct OptixAccelBufferSizes {
455
455
}
456
456
pub const OptixAccelPropertyType_OPTIX_PROPERTY_TYPE_COMPACTED_SIZE : OptixAccelPropertyType = 8577 ;
457
457
pub const OptixAccelPropertyType_OPTIX_PROPERTY_TYPE_AABBS : OptixAccelPropertyType = 8578 ;
458
- pub type OptixAccelPropertyType = :: std:: os:: raw:: c_int ;
458
+ pub type OptixAccelPropertyType = :: std:: os:: raw:: c_uint ;
459
459
#[ repr( C ) ]
460
460
pub struct OptixAccelEmitDesc {
461
461
pub result : CUdeviceptr ,
@@ -524,9 +524,9 @@ pub const OptixTraversableType_OPTIX_TRAVERSABLE_TYPE_MATRIX_MOTION_TRANSFORM:
524
524
OptixTraversableType = 8642 ;
525
525
pub const OptixTraversableType_OPTIX_TRAVERSABLE_TYPE_SRT_MOTION_TRANSFORM : OptixTraversableType =
526
526
8643 ;
527
- pub type OptixTraversableType = :: std:: os:: raw:: c_int ;
527
+ pub type OptixTraversableType = :: std:: os:: raw:: c_uint ;
528
528
pub mod OptixPixelFormat {
529
- pub type Type = :: std:: os:: raw:: c_int ;
529
+ pub type Type = :: std:: os:: raw:: c_uint ;
530
530
pub const OPTIX_PIXEL_FORMAT_HALF2 : Type = 8711 ;
531
531
pub const OPTIX_PIXEL_FORMAT_HALF3 : Type = 8705 ;
532
532
pub const OPTIX_PIXEL_FORMAT_HALF4 : Type = 8706 ;
@@ -555,7 +555,7 @@ impl Default for OptixImage2D {
555
555
}
556
556
}
557
557
pub mod OptixDenoiserModelKind {
558
- pub type Type = :: std:: os:: raw:: c_int ;
558
+ pub type Type = :: std:: os:: raw:: c_uint ;
559
559
pub const OPTIX_DENOISER_MODEL_KIND_LDR : Type = 8994 ;
560
560
pub const OPTIX_DENOISER_MODEL_KIND_HDR : Type = 8995 ;
561
561
pub const OPTIX_DENOISER_MODEL_KIND_AOV : Type = 8996 ;
@@ -630,29 +630,29 @@ pub const OptixRayFlags_OPTIX_RAY_FLAG_CULL_BACK_FACING_TRIANGLES: OptixRayFlags
630
630
pub const OptixRayFlags_OPTIX_RAY_FLAG_CULL_FRONT_FACING_TRIANGLES : OptixRayFlags = 32 ;
631
631
pub const OptixRayFlags_OPTIX_RAY_FLAG_CULL_DISABLED_ANYHIT : OptixRayFlags = 64 ;
632
632
pub const OptixRayFlags_OPTIX_RAY_FLAG_CULL_ENFORCED_ANYHIT : OptixRayFlags = 128 ;
633
- pub type OptixRayFlags = :: std:: os:: raw:: c_int ;
633
+ pub type OptixRayFlags = :: std:: os:: raw:: c_uint ;
634
634
pub const OptixTransformType_OPTIX_TRANSFORM_TYPE_NONE : OptixTransformType = 0 ;
635
635
pub const OptixTransformType_OPTIX_TRANSFORM_TYPE_STATIC_TRANSFORM : OptixTransformType = 1 ;
636
636
pub const OptixTransformType_OPTIX_TRANSFORM_TYPE_MATRIX_MOTION_TRANSFORM : OptixTransformType = 2 ;
637
637
pub const OptixTransformType_OPTIX_TRANSFORM_TYPE_SRT_MOTION_TRANSFORM : OptixTransformType = 3 ;
638
638
pub const OptixTransformType_OPTIX_TRANSFORM_TYPE_INSTANCE : OptixTransformType = 4 ;
639
- pub type OptixTransformType = :: std:: os:: raw:: c_int ;
639
+ pub type OptixTransformType = :: std:: os:: raw:: c_uint ;
640
640
pub mod OptixTraversableGraphFlags {
641
- pub type Type = :: std:: os:: raw:: c_int ;
641
+ pub type Type = :: std:: os:: raw:: c_uint ;
642
642
pub const OPTIX_TRAVERSABLE_GRAPH_FLAG_ALLOW_ANY : Type = 0 ;
643
643
pub const OPTIX_TRAVERSABLE_GRAPH_FLAG_ALLOW_SINGLE_GAS : Type = 1 ;
644
644
pub const OPTIX_TRAVERSABLE_GRAPH_FLAG_ALLOW_SINGLE_LEVEL_INSTANCING : Type = 2 ;
645
645
}
646
646
pub mod OptixCompileOptimizationLevel {
647
- pub type Type = :: std:: os:: raw:: c_int ;
647
+ pub type Type = :: std:: os:: raw:: c_uint ;
648
648
pub const OPTIX_COMPILE_OPTIMIZATION_DEFAULT : Type = 0 ;
649
649
pub const OPTIX_COMPILE_OPTIMIZATION_LEVEL_0 : Type = 9024 ;
650
650
pub const OPTIX_COMPILE_OPTIMIZATION_LEVEL_1 : Type = 9025 ;
651
651
pub const OPTIX_COMPILE_OPTIMIZATION_LEVEL_2 : Type = 9026 ;
652
652
pub const OPTIX_COMPILE_OPTIMIZATION_LEVEL_3 : Type = 9027 ;
653
653
}
654
654
pub mod OptixCompileDebugLevel {
655
- pub type Type = :: std:: os:: raw:: c_int ;
655
+ pub type Type = :: std:: os:: raw:: c_uint ;
656
656
pub const OPTIX_COMPILE_DEBUG_LEVEL_DEFAULT : Type = 0 ;
657
657
pub const OPTIX_COMPILE_DEBUG_LEVEL_NONE : Type = 9040 ;
658
658
pub const OPTIX_COMPILE_DEBUG_LEVEL_LINEINFO : Type = 9041 ;
@@ -694,15 +694,15 @@ impl Default for OptixModuleCompileOptions {
694
694
}
695
695
}
696
696
pub mod OptixProgramGroupKind {
697
- pub type Type = :: std:: os:: raw:: c_int ;
697
+ pub type Type = :: std:: os:: raw:: c_uint ;
698
698
pub const OPTIX_PROGRAM_GROUP_KIND_RAYGEN : Type = 9249 ;
699
699
pub const OPTIX_PROGRAM_GROUP_KIND_MISS : Type = 9250 ;
700
700
pub const OPTIX_PROGRAM_GROUP_KIND_EXCEPTION : Type = 9251 ;
701
701
pub const OPTIX_PROGRAM_GROUP_KIND_HITGROUP : Type = 9252 ;
702
702
pub const OPTIX_PROGRAM_GROUP_KIND_CALLABLES : Type = 9253 ;
703
703
}
704
704
pub const OptixProgramGroupFlags_OPTIX_PROGRAM_GROUP_FLAGS_NONE : OptixProgramGroupFlags = 0 ;
705
- pub type OptixProgramGroupFlags = :: std:: os:: raw:: c_int ;
705
+ pub type OptixProgramGroupFlags = :: std:: os:: raw:: c_uint ;
706
706
#[ repr( C ) ]
707
707
#[ derive( Debug , Copy , Clone , PartialEq ) ]
708
708
pub struct OptixProgramGroupSingleModule {
@@ -826,7 +826,7 @@ pub const OptixExceptionCodes_OPTIX_EXCEPTION_CODE_UNSUPPORTED_DATA_ACCESS: Opti
826
826
-32 ;
827
827
pub type OptixExceptionCodes = :: std:: os:: raw:: c_int ;
828
828
pub mod OptixExceptionFlags {
829
- pub type Type = :: std:: os:: raw:: c_int ;
829
+ pub type Type = :: std:: os:: raw:: c_uint ;
830
830
pub const OPTIX_EXCEPTION_FLAG_NONE : Type = 0 ;
831
831
pub const OPTIX_EXCEPTION_FLAG_STACK_OVERFLOW : Type = 1 ;
832
832
pub const OPTIX_EXCEPTION_FLAG_TRACE_DEPTH : Type = 2 ;
@@ -906,7 +906,7 @@ pub struct OptixStackSizes {
906
906
}
907
907
pub const OptixQueryFunctionTableOptions_OPTIX_QUERY_FUNCTION_TABLE_OPTION_DUMMY :
908
908
OptixQueryFunctionTableOptions = 0 ;
909
- pub type OptixQueryFunctionTableOptions = :: std:: os:: raw:: c_int ;
909
+ pub type OptixQueryFunctionTableOptions = :: std:: os:: raw:: c_uint ;
910
910
pub type OptixQueryFunctionTable_t = :: std:: option:: Option <
911
911
unsafe extern "C" fn (
912
912
abiId : :: std:: os:: raw:: c_int ,
@@ -1543,7 +1543,7 @@ pub const OptixTransformByteAlignment: usize = 64;
1543
1543
pub const OptixVersion : usize = 70300 ;
1544
1544
pub const OptixBuildInputSize : usize = 1032 ;
1545
1545
pub const OptixShaderBindingTableSize : usize = 64 ;
1546
- #[ repr( i32 ) ]
1546
+ #[ repr( u32 ) ]
1547
1547
#[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
1548
1548
pub enum OptixGeometryFlags {
1549
1549
None = 0 ,
0 commit comments