Skip to content

Commit 2cbb916

Browse files
authored
Add PartialEq for GeometryPixel (#401)
Used in unit tests further down the stack.
1 parent 24c4a6d commit 2cbb916

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
now all generate `BytecodeOp::Sub` (using the reserved register as needed
1111
for immediates).
1212
- This also removes the `enum RegOpDiscriminants` from `fidget_core`
13+
- Add `PartialEq` for `GeometryPixel`
1314

1415
# 0.4.2
1516
- Change `depth` member in `GeometryPixel` from `u32` to `f32` ([#381](https://github.com/mkeeter/fidget/pull/381))

fidget-raster/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,9 @@ impl<P, S: ImageSizeLike> std::ops::IndexMut<(usize, usize)> for Image<P, S> {
434434
///
435435
/// This type can be passed directly in a buffer to the GPU.
436436
#[repr(C)]
437-
#[derive(Debug, Default, Copy, Clone, IntoBytes, FromBytes, Immutable)]
437+
#[derive(
438+
Debug, Default, Copy, Clone, IntoBytes, FromBytes, Immutable, PartialEq,
439+
)]
438440
pub struct GeometryPixel {
439441
/// Z position of this pixel, in voxel units
440442
///

0 commit comments

Comments
 (0)