@@ -188,9 +188,9 @@ impl OptixResult {
188188}
189189#[ repr( transparent) ]
190190#[ 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 ) ;
192192pub mod OptixDeviceProperty {
193- pub type Type = :: std:: os:: raw:: c_int ;
193+ pub type Type = :: std:: os:: raw:: c_uint ;
194194 pub const OPTIX_DEVICE_PROPERTY_LIMIT_MAX_TRACE_DEPTH : Type = 8193 ;
195195 pub const OPTIX_DEVICE_PROPERTY_LIMIT_MAX_TRAVERSABLE_GRAPH_DEPTH : Type = 8194 ;
196196 pub const OPTIX_DEVICE_PROPERTY_LIMIT_MAX_PRIMITIVES_PER_GAS : Type = 8195 ;
@@ -212,8 +212,8 @@ pub type OptixLogCallback = ::std::option::Option<
212212pub const OptixDeviceContextValidationMode_OPTIX_DEVICE_CONTEXT_VALIDATION_MODE_OFF :
213213 OptixDeviceContextValidationMode = 0 ;
214214pub 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 ;
217217#[ repr( C ) ]
218218#[ derive( Debug , Copy , Clone , PartialEq ) ]
219219pub struct OptixDeviceContextOptions {
@@ -233,22 +233,22 @@ impl Default for OptixDeviceContextOptions {
233233}
234234pub const OptixHitKind_OPTIX_HIT_KIND_TRIANGLE_FRONT_FACE : OptixHitKind = 254 ;
235235pub 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 ;
237237pub const OptixIndicesFormat_OPTIX_INDICES_FORMAT_NONE : OptixIndicesFormat = 0 ;
238238pub const OptixIndicesFormat_OPTIX_INDICES_FORMAT_UNSIGNED_SHORT3 : OptixIndicesFormat = 8450 ;
239239pub 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 ;
241241pub const OptixVertexFormat_OPTIX_VERTEX_FORMAT_NONE : OptixVertexFormat = 0 ;
242242pub const OptixVertexFormat_OPTIX_VERTEX_FORMAT_FLOAT3 : OptixVertexFormat = 8481 ;
243243pub const OptixVertexFormat_OPTIX_VERTEX_FORMAT_FLOAT2 : OptixVertexFormat = 8482 ;
244244pub const OptixVertexFormat_OPTIX_VERTEX_FORMAT_HALF3 : OptixVertexFormat = 8483 ;
245245pub const OptixVertexFormat_OPTIX_VERTEX_FORMAT_HALF2 : OptixVertexFormat = 8484 ;
246246pub const OptixVertexFormat_OPTIX_VERTEX_FORMAT_SNORM16_3 : OptixVertexFormat = 8485 ;
247247pub 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 ;
249249pub const OptixTransformFormat_OPTIX_TRANSFORM_FORMAT_NONE : OptixTransformFormat = 0 ;
250250pub 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 ;
252252#[ repr( C ) ]
253253pub struct OptixBuildInputTriangleArray {
254254 pub vertexBuffers : * const CUdeviceptr ,
@@ -283,7 +283,7 @@ pub const OptixPrimitiveType_OPTIX_PRIMITIVE_TYPE_ROUND_QUADRATIC_BSPLINE: Optix
283283pub const OptixPrimitiveType_OPTIX_PRIMITIVE_TYPE_ROUND_CUBIC_BSPLINE : OptixPrimitiveType = 9474 ;
284284pub const OptixPrimitiveType_OPTIX_PRIMITIVE_TYPE_ROUND_LINEAR : OptixPrimitiveType = 9475 ;
285285pub 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 ;
287287pub const OptixPrimitiveTypeFlags_OPTIX_PRIMITIVE_TYPE_FLAGS_CUSTOM : OptixPrimitiveTypeFlags = 1 ;
288288pub const OptixPrimitiveTypeFlags_OPTIX_PRIMITIVE_TYPE_FLAGS_ROUND_QUADRATIC_BSPLINE :
289289 OptixPrimitiveTypeFlags = 2 ;
@@ -369,7 +369,7 @@ pub const OptixBuildInputType_OPTIX_BUILD_INPUT_TYPE_CUSTOM_PRIMITIVES: OptixBui
369369pub const OptixBuildInputType_OPTIX_BUILD_INPUT_TYPE_INSTANCES : OptixBuildInputType = 8515 ;
370370pub const OptixBuildInputType_OPTIX_BUILD_INPUT_TYPE_INSTANCE_POINTERS : OptixBuildInputType = 8516 ;
371371pub 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 ;
373373#[ repr( C ) ]
374374pub struct OptixBuildInput__bindgen_ty_1 {
375375 pub triangleArray : __BindgenUnionField < OptixBuildInputTriangleArray > ,
@@ -395,7 +395,7 @@ pub const OptixInstanceFlags_OPTIX_INSTANCE_FLAG_FLIP_TRIANGLE_FACING: OptixInst
395395pub const OptixInstanceFlags_OPTIX_INSTANCE_FLAG_DISABLE_ANYHIT : OptixInstanceFlags = 4 ;
396396pub const OptixInstanceFlags_OPTIX_INSTANCE_FLAG_ENFORCE_ANYHIT : OptixInstanceFlags = 8 ;
397397pub 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 ;
399399#[ repr( C ) ]
400400#[ derive( Debug , Default , Copy , Clone , PartialEq ) ]
401401pub struct OptixInstance {
@@ -414,14 +414,14 @@ pub const OptixBuildFlags_OPTIX_BUILD_FLAG_PREFER_FAST_TRACE: OptixBuildFlags =
414414pub const OptixBuildFlags_OPTIX_BUILD_FLAG_PREFER_FAST_BUILD : OptixBuildFlags = 8 ;
415415pub const OptixBuildFlags_OPTIX_BUILD_FLAG_ALLOW_RANDOM_VERTEX_ACCESS : OptixBuildFlags = 16 ;
416416pub 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 ;
418418pub const OptixBuildOperation_OPTIX_BUILD_OPERATION_BUILD : OptixBuildOperation = 8545 ;
419419pub 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 ;
421421pub const OptixMotionFlags_OPTIX_MOTION_FLAG_NONE : OptixMotionFlags = 0 ;
422422pub const OptixMotionFlags_OPTIX_MOTION_FLAG_START_VANISH : OptixMotionFlags = 1 ;
423423pub 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 ;
425425#[ repr( C ) ]
426426#[ derive( Debug , Default , Copy , Clone , PartialEq ) ]
427427pub struct OptixMotionOptions {
@@ -455,7 +455,7 @@ pub struct OptixAccelBufferSizes {
455455}
456456pub const OptixAccelPropertyType_OPTIX_PROPERTY_TYPE_COMPACTED_SIZE : OptixAccelPropertyType = 8577 ;
457457pub 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 ;
459459#[ repr( C ) ]
460460pub struct OptixAccelEmitDesc {
461461 pub result : CUdeviceptr ,
@@ -524,9 +524,9 @@ pub const OptixTraversableType_OPTIX_TRAVERSABLE_TYPE_MATRIX_MOTION_TRANSFORM:
524524 OptixTraversableType = 8642 ;
525525pub const OptixTraversableType_OPTIX_TRAVERSABLE_TYPE_SRT_MOTION_TRANSFORM : OptixTraversableType =
526526 8643 ;
527- pub type OptixTraversableType = :: std:: os:: raw:: c_int ;
527+ pub type OptixTraversableType = :: std:: os:: raw:: c_uint ;
528528pub mod OptixPixelFormat {
529- pub type Type = :: std:: os:: raw:: c_int ;
529+ pub type Type = :: std:: os:: raw:: c_uint ;
530530 pub const OPTIX_PIXEL_FORMAT_HALF2 : Type = 8711 ;
531531 pub const OPTIX_PIXEL_FORMAT_HALF3 : Type = 8705 ;
532532 pub const OPTIX_PIXEL_FORMAT_HALF4 : Type = 8706 ;
@@ -555,7 +555,7 @@ impl Default for OptixImage2D {
555555 }
556556}
557557pub mod OptixDenoiserModelKind {
558- pub type Type = :: std:: os:: raw:: c_int ;
558+ pub type Type = :: std:: os:: raw:: c_uint ;
559559 pub const OPTIX_DENOISER_MODEL_KIND_LDR : Type = 8994 ;
560560 pub const OPTIX_DENOISER_MODEL_KIND_HDR : Type = 8995 ;
561561 pub const OPTIX_DENOISER_MODEL_KIND_AOV : Type = 8996 ;
@@ -630,29 +630,29 @@ pub const OptixRayFlags_OPTIX_RAY_FLAG_CULL_BACK_FACING_TRIANGLES: OptixRayFlags
630630pub const OptixRayFlags_OPTIX_RAY_FLAG_CULL_FRONT_FACING_TRIANGLES : OptixRayFlags = 32 ;
631631pub const OptixRayFlags_OPTIX_RAY_FLAG_CULL_DISABLED_ANYHIT : OptixRayFlags = 64 ;
632632pub 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 ;
634634pub const OptixTransformType_OPTIX_TRANSFORM_TYPE_NONE : OptixTransformType = 0 ;
635635pub const OptixTransformType_OPTIX_TRANSFORM_TYPE_STATIC_TRANSFORM : OptixTransformType = 1 ;
636636pub const OptixTransformType_OPTIX_TRANSFORM_TYPE_MATRIX_MOTION_TRANSFORM : OptixTransformType = 2 ;
637637pub const OptixTransformType_OPTIX_TRANSFORM_TYPE_SRT_MOTION_TRANSFORM : OptixTransformType = 3 ;
638638pub 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 ;
640640pub mod OptixTraversableGraphFlags {
641- pub type Type = :: std:: os:: raw:: c_int ;
641+ pub type Type = :: std:: os:: raw:: c_uint ;
642642 pub const OPTIX_TRAVERSABLE_GRAPH_FLAG_ALLOW_ANY : Type = 0 ;
643643 pub const OPTIX_TRAVERSABLE_GRAPH_FLAG_ALLOW_SINGLE_GAS : Type = 1 ;
644644 pub const OPTIX_TRAVERSABLE_GRAPH_FLAG_ALLOW_SINGLE_LEVEL_INSTANCING : Type = 2 ;
645645}
646646pub mod OptixCompileOptimizationLevel {
647- pub type Type = :: std:: os:: raw:: c_int ;
647+ pub type Type = :: std:: os:: raw:: c_uint ;
648648 pub const OPTIX_COMPILE_OPTIMIZATION_DEFAULT : Type = 0 ;
649649 pub const OPTIX_COMPILE_OPTIMIZATION_LEVEL_0 : Type = 9024 ;
650650 pub const OPTIX_COMPILE_OPTIMIZATION_LEVEL_1 : Type = 9025 ;
651651 pub const OPTIX_COMPILE_OPTIMIZATION_LEVEL_2 : Type = 9026 ;
652652 pub const OPTIX_COMPILE_OPTIMIZATION_LEVEL_3 : Type = 9027 ;
653653}
654654pub mod OptixCompileDebugLevel {
655- pub type Type = :: std:: os:: raw:: c_int ;
655+ pub type Type = :: std:: os:: raw:: c_uint ;
656656 pub const OPTIX_COMPILE_DEBUG_LEVEL_DEFAULT : Type = 0 ;
657657 pub const OPTIX_COMPILE_DEBUG_LEVEL_NONE : Type = 9040 ;
658658 pub const OPTIX_COMPILE_DEBUG_LEVEL_LINEINFO : Type = 9041 ;
@@ -694,15 +694,15 @@ impl Default for OptixModuleCompileOptions {
694694 }
695695}
696696pub mod OptixProgramGroupKind {
697- pub type Type = :: std:: os:: raw:: c_int ;
697+ pub type Type = :: std:: os:: raw:: c_uint ;
698698 pub const OPTIX_PROGRAM_GROUP_KIND_RAYGEN : Type = 9249 ;
699699 pub const OPTIX_PROGRAM_GROUP_KIND_MISS : Type = 9250 ;
700700 pub const OPTIX_PROGRAM_GROUP_KIND_EXCEPTION : Type = 9251 ;
701701 pub const OPTIX_PROGRAM_GROUP_KIND_HITGROUP : Type = 9252 ;
702702 pub const OPTIX_PROGRAM_GROUP_KIND_CALLABLES : Type = 9253 ;
703703}
704704pub 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 ;
706706#[ repr( C ) ]
707707#[ derive( Debug , Copy , Clone , PartialEq ) ]
708708pub struct OptixProgramGroupSingleModule {
@@ -826,7 +826,7 @@ pub const OptixExceptionCodes_OPTIX_EXCEPTION_CODE_UNSUPPORTED_DATA_ACCESS: Opti
826826 -32 ;
827827pub type OptixExceptionCodes = :: std:: os:: raw:: c_int ;
828828pub mod OptixExceptionFlags {
829- pub type Type = :: std:: os:: raw:: c_int ;
829+ pub type Type = :: std:: os:: raw:: c_uint ;
830830 pub const OPTIX_EXCEPTION_FLAG_NONE : Type = 0 ;
831831 pub const OPTIX_EXCEPTION_FLAG_STACK_OVERFLOW : Type = 1 ;
832832 pub const OPTIX_EXCEPTION_FLAG_TRACE_DEPTH : Type = 2 ;
@@ -906,7 +906,7 @@ pub struct OptixStackSizes {
906906}
907907pub const OptixQueryFunctionTableOptions_OPTIX_QUERY_FUNCTION_TABLE_OPTION_DUMMY :
908908 OptixQueryFunctionTableOptions = 0 ;
909- pub type OptixQueryFunctionTableOptions = :: std:: os:: raw:: c_int ;
909+ pub type OptixQueryFunctionTableOptions = :: std:: os:: raw:: c_uint ;
910910pub type OptixQueryFunctionTable_t = :: std:: option:: Option <
911911 unsafe extern "C" fn (
912912 abiId : :: std:: os:: raw:: c_int ,
@@ -1543,7 +1543,7 @@ pub const OptixTransformByteAlignment: usize = 64;
15431543pub const OptixVersion : usize = 70300 ;
15441544pub const OptixBuildInputSize : usize = 1032 ;
15451545pub const OptixShaderBindingTableSize : usize = 64 ;
1546- #[ repr( i32 ) ]
1546+ #[ repr( u32 ) ]
15471547#[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
15481548pub enum OptixGeometryFlags {
15491549 None = 0 ,
0 commit comments