Skip to content

Commit

Permalink
remove unnecessary pub(crate)
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyDM committed Aug 24, 2024
1 parent 7f7c664 commit e99eda2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/text_render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -510,17 +510,17 @@ pub enum ContentType {

#[repr(u16)]
#[derive(Debug, Clone, Copy, Eq, PartialEq)]
pub(crate) enum TextColorConversion {
enum TextColorConversion {
None = 0,
ConvertToLinear = 1,
}

pub(crate) fn next_copy_buffer_size(size: u64) -> u64 {
fn next_copy_buffer_size(size: u64) -> u64 {
let align_mask = COPY_BUFFER_ALIGNMENT - 1;
((size.next_power_of_two() + align_mask) & !align_mask).max(COPY_BUFFER_ALIGNMENT)
}

pub(crate) fn create_oversized_buffer(
fn create_oversized_buffer(
device: &Device,
label: Option<&str>,
contents: &[u8],
Expand Down

0 comments on commit e99eda2

Please sign in to comment.