Skip to content

Commit

Permalink
Remove code that is no longer used (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
LegNeato authored Nov 21, 2024
1 parent eccfb34 commit 337f76a
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,24 +65,4 @@ impl BufferLayout {
};
}

pub const NUM_BUFFERS: usize = 3;

pub const SHADER_ENTRY_POINT: &str = "matmul";

// Helper functions for index calculations
#[inline]
pub fn get_matrix_index(row: u32, col: u32, stride: u32) -> usize {
(row * stride + col) as usize
}

pub fn validate_dimensions(a_dims: (u32, u32), b_dims: (u32, u32)) -> bool {
a_dims.1 == b_dims.0
}

pub fn get_output_dimensions(a_dims: (u32, u32), b_dims: (u32, u32)) -> Option<(u32, u32)> {
if validate_dimensions(a_dims, b_dims) {
Some((a_dims.0, b_dims.1))
} else {
None
}
}

0 comments on commit 337f76a

Please sign in to comment.