File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
## Change Log
2
2
3
+ ### v0.18.3
4
+ - ` gfx_defines! ` uses ` #[repr(C)] ` for vertex & constant structs. Fixes issues with rust 1.67 field ordering.
5
+
3
6
### v0.18 (2019-02-12)
4
7
- changed ` get_dimensions ` to return a minimum of 1
5
8
- Features:
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ macro_rules! gfx_vertex_struct_meta {
95
95
( $( #[ $attr: meta] ) * vertex_struct_meta $root: ident {
96
96
$( $( #[ $field_attr: meta] ) * $field: ident: $ty: ty = $name: expr, ) *
97
97
} ) => ( gfx_impl_struct_meta!{
98
- $( #[ $attr] ) * impl_struct_meta
98
+ $( #[ $attr] ) * # [ repr ( C ) ] impl_struct_meta
99
99
$crate:: format:: Format : $crate:: format:: Formatted =
100
100
$root {
101
101
$( $( #[ $field_attr] ) * $field: $ty = $name, ) *
@@ -121,7 +121,7 @@ macro_rules! gfx_constant_struct_meta {
121
121
( $( #[ $attr: meta] ) * constant_struct_meta $root: ident {
122
122
$( $( #[ $field_attr: meta] ) * $field: ident: $ty: ty = $name: expr, ) *
123
123
} ) => ( gfx_impl_struct_meta!{
124
- $( #[ $attr] ) * impl_struct_meta
124
+ $( #[ $attr] ) * # [ repr ( C ) ] impl_struct_meta
125
125
$crate:: shade:: ConstFormat : $crate:: shade:: Formatted =
126
126
$root {
127
127
$( $( #[ $field_attr] ) * $field: $ty = $name, ) *
You can’t perform that action at this time.
0 commit comments