@@ -124,38 +124,38 @@ NB_MODULE(_drjit_ext, m_) {
124124 .value (" LoopOptimize" , JitFlag::LoopOptimize, doc_JitFlag_LoopOptimize)
125125 .value (" Recording" , JitFlag::Recording, doc_JitFlag_Recording);
126126
127- // nb::enum_<VarType>(m, "VarType", doc_VarType)
128- // .value("Void", VarType::Void, doc_VarType_Void)
129- // .value("Bool", VarType::Bool, doc_VarType_Bool)
130- // .value("Int8", VarType::Int8, doc_VarType_Int8)
131- // .value("UInt8", VarType::UInt8, doc_VarType_UInt8)
132- // .value("Int16", VarType::Int16, doc_VarType_Int16)
133- // .value("UInt16", VarType::UInt16, doc_VarType_UInt16)
134- // .value("Int32", VarType::Int32, doc_VarType_Int32)
135- // .value("UInt32", VarType::UInt32, doc_VarType_UInt32)
136- // .value("Int64", VarType::Int64, doc_VarType_Int64)
137- // .value("UInt64", VarType::UInt64, doc_VarType_UInt64)
138- // .value("Pointer", VarType::Pointer, doc_VarType_Pointer)
139- // .value("Float16", VarType::Float16, doc_VarType_Float16)
140- // .value("Float32", VarType::Float32, doc_VarType_Float32)
141- // .value("Float64", VarType::Float64, doc_VarType_Float64);
142-
143- // nb::enum_<ReduceOp>(m, "ReduceOp", doc_ReduceOp)
144- // .value("Identity", ReduceOp::Identity, doc_ReduceOp_Identity)
145- // .value("Add", ReduceOp::Add, doc_ReduceOp_Add)
146- // .value("Mul", ReduceOp::Mul, doc_ReduceOp_Mul)
147- // .value("Min", ReduceOp::Min, doc_ReduceOp_Min)
148- // .value("Max", ReduceOp::Max, doc_ReduceOp_Max)
149- // .value("And", ReduceOp::And, doc_ReduceOp_And)
150- // .value("Or", ReduceOp::Or, doc_ReduceOp_Or);
151-
152- // nb::enum_<ReduceMode>(m, "ReduceMode", doc_ReduceMode)
153- // .value("Auto", ReduceMode::Auto, doc_ReduceMode_Auto)
154- // .value("Direct", ReduceMode::Direct, doc_ReduceMode_Direct)
155- // .value("Local", ReduceMode::Local, doc_ReduceMode_Local)
156- // .value("NoConflicts", ReduceMode::NoConflicts, doc_ReduceMode_NoConflicts)
157- // .value("Permute", ReduceMode::Permute, doc_ReduceMode_Permute)
158- // .value("Expand", ReduceMode::Expand, doc_ReduceMode_Expand);
127+ nb::enum_<VarType>(m, " VarType" , doc_VarType)
128+ .value (" Void" , VarType::Void, doc_VarType_Void)
129+ .value (" Bool" , VarType::Bool, doc_VarType_Bool)
130+ .value (" Int8" , VarType::Int8, doc_VarType_Int8)
131+ .value (" UInt8" , VarType::UInt8, doc_VarType_UInt8)
132+ .value (" Int16" , VarType::Int16, doc_VarType_Int16)
133+ .value (" UInt16" , VarType::UInt16, doc_VarType_UInt16)
134+ .value (" Int32" , VarType::Int32, doc_VarType_Int32)
135+ .value (" UInt32" , VarType::UInt32, doc_VarType_UInt32)
136+ .value (" Int64" , VarType::Int64, doc_VarType_Int64)
137+ .value (" UInt64" , VarType::UInt64, doc_VarType_UInt64)
138+ .value (" Pointer" , VarType::Pointer, doc_VarType_Pointer)
139+ .value (" Float16" , VarType::Float16, doc_VarType_Float16)
140+ .value (" Float32" , VarType::Float32, doc_VarType_Float32)
141+ .value (" Float64" , VarType::Float64, doc_VarType_Float64);
142+
143+ nb::enum_<ReduceOp>(m, " ReduceOp" , doc_ReduceOp)
144+ .value (" Identity" , ReduceOp::Identity, doc_ReduceOp_Identity)
145+ .value (" Add" , ReduceOp::Add, doc_ReduceOp_Add)
146+ .value (" Mul" , ReduceOp::Mul, doc_ReduceOp_Mul)
147+ .value (" Min" , ReduceOp::Min, doc_ReduceOp_Min)
148+ .value (" Max" , ReduceOp::Max, doc_ReduceOp_Max)
149+ .value (" And" , ReduceOp::And, doc_ReduceOp_And)
150+ .value (" Or" , ReduceOp::Or, doc_ReduceOp_Or);
151+
152+ nb::enum_<ReduceMode>(m, " ReduceMode" , doc_ReduceMode)
153+ .value (" Auto" , ReduceMode::Auto, doc_ReduceMode_Auto)
154+ .value (" Direct" , ReduceMode::Direct, doc_ReduceMode_Direct)
155+ .value (" Local" , ReduceMode::Local, doc_ReduceMode_Local)
156+ .value (" NoConflicts" , ReduceMode::NoConflicts, doc_ReduceMode_NoConflicts)
157+ .value (" Permute" , ReduceMode::Permute, doc_ReduceMode_Permute)
158+ .value (" Expand" , ReduceMode::Expand, doc_ReduceMode_Expand);
159159
160160 // nb::enum_<VarState>(m, "VarState", doc_VarState)
161161 // .value("Invalid", VarState::Invalid, doc_VarState_Invalid)
0 commit comments