rusticl/types add ::new for cl_dev_idp_accel_props
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23011>
This commit is contained in:
@@ -223,3 +223,24 @@ where
|
||||
Self::new(arr)
|
||||
}
|
||||
}
|
||||
|
||||
pub struct IdpAccelProps;
|
||||
impl IdpAccelProps {
|
||||
pub fn new(
|
||||
signed_accelerated: cl_bool,
|
||||
unsigned_accelerated: cl_bool,
|
||||
mixed_signedness_accelerated: cl_bool,
|
||||
accumulating_saturating_signed_accelerated: cl_bool,
|
||||
accumulating_saturating_unsigned_accelerated: cl_bool,
|
||||
accumulating_saturating_mixed_signedness_accelerated: cl_bool,
|
||||
) -> cl_device_integer_dot_product_acceleration_properties_khr {
|
||||
cl_device_integer_dot_product_acceleration_properties_khr {
|
||||
signed_accelerated,
|
||||
unsigned_accelerated,
|
||||
mixed_signedness_accelerated,
|
||||
accumulating_saturating_signed_accelerated,
|
||||
accumulating_saturating_unsigned_accelerated,
|
||||
accumulating_saturating_mixed_signedness_accelerated,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user