capi: remove _internal_alloc from libra_preset_param_list_t
This commit is contained in:
parent
61fdaeea14
commit
e7e6ed8fb8
|
@ -155,11 +155,9 @@ typedef struct libra_preset_param_t {
|
||||||
typedef struct libra_preset_param_list_t {
|
typedef struct libra_preset_param_list_t {
|
||||||
/// A pointer to the parameter
|
/// A pointer to the parameter
|
||||||
const struct libra_preset_param_t *parameters;
|
const struct libra_preset_param_t *parameters;
|
||||||
/// The number of parameters in the list.
|
/// The number of parameters in the list. This field is readonly,
|
||||||
|
/// changing it will lead to undefined behaviour on free.
|
||||||
uint64_t length;
|
uint64_t length;
|
||||||
/// For internal use only.
|
|
||||||
/// Changing this causes immediate undefined behaviour on freeing this parameter list.
|
|
||||||
uint64_t _internal_alloc;
|
|
||||||
} libra_preset_param_list_t;
|
} libra_preset_param_list_t;
|
||||||
|
|
||||||
#if defined(LIBRA_RUNTIME_OPENGL)
|
#if defined(LIBRA_RUNTIME_OPENGL)
|
||||||
|
|
|
@ -14,11 +14,10 @@ const _: () = crate::assert_thread_safe::<ShaderPreset>();
|
||||||
pub struct libra_preset_param_list_t {
|
pub struct libra_preset_param_list_t {
|
||||||
/// A pointer to the parameter
|
/// A pointer to the parameter
|
||||||
pub parameters: *const libra_preset_param_t,
|
pub parameters: *const libra_preset_param_t,
|
||||||
/// The number of parameters in the list.
|
/// The number of parameters in the list. This field
|
||||||
|
/// is readonly, and changing it will lead to undefined
|
||||||
|
/// behaviour on free.
|
||||||
pub length: u64,
|
pub length: u64,
|
||||||
/// For internal use only.
|
|
||||||
/// Changing this causes immediate undefined behaviour on freeing this parameter list.
|
|
||||||
pub _internal_alloc: u64,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A preset parameter.
|
/// A preset parameter.
|
||||||
|
@ -226,7 +225,6 @@ extern_fn! {
|
||||||
out.write(MaybeUninit::new(libra_preset_param_list_t {
|
out.write(MaybeUninit::new(libra_preset_param_list_t {
|
||||||
parameters: parts,
|
parameters: parts,
|
||||||
length: len as u64,
|
length: len as u64,
|
||||||
_internal_alloc: 0,
|
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue