2.1 KiB
2.1 KiB
Crevice Changelog
Unreleased Changes
0.6.0 (2021-02-24)
- Added
std430support. Most APIs betweenstd140andstd430are the same! - Added the
WriteStd140trait. This trait is more general thanAsStd140and is automatically implemented for all existingAsStd140implementers. - Added
Writer::write_std140to write a type that implementsStd140. - Added
AsStd140::std140_size_static. This is similar to the old size method,std140_size, but no longer requires a value to be passed. For size measurements that depend on a value, useWriteStd140::std140_sizeinstead. - Deprecated
Writer::write_slice, asWriter::writenow accepts slices. - Changed bounds of some functions, like
Writer::writeto useWriteStd140instead ofAsStd140. This should affect no existing consumers. - Moved
std140_sizefromAsStd140toWriteStd140. Some existing consumers may need to import the other trait to access this m ethod.
0.5.0 (2020-10-18)
- Added f64-based std140 types:
DVec2,DVec3,DVec4,DMat2,DMat3, andDMat4. - Added support for std140 structs with alignment greater than 16.
- Fixed padding for std140 matrices; they were previously missing trailing padding.
0.4.0 (2020-10-01)
- Added
AsStd140::std140_sizefor easily pre-sizing buffers. Writer::writeandSizer::addnow return the offset the value is or would be written to.- Added
std140::DynamicUniformfor aligning dynamic uniform members. - Added
Writer::write_slicefor writing multiple values in a row.
0.3.0 (2020-09-22)
- Added
Std140::as_bytes, reducing the need to work with bytemuck directly. - Removed public re-export of bytemuck.
0.2.0 (2020-09-22)
- Added documentation for everything in the crate.
- Removed
type_layoutbeing exposed except for internal tests. - Fixed alignment offset not taking into account previously added alignment.
- Added
std140::Writer, for writing dynamically laid out types to buffers. - Added
std140::Sizer, for pre-calculating buffer sizes.
0.1.0 (2020-09-18)
- Initial MVP release