Skip to content

Commit

Permalink
graphics: buffer_size docs improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
not-fl3 committed Jun 26, 2023
1 parent 7d4acf1 commit 4b5fe80
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/graphics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,9 @@ pub trait RenderingBackend {
fn new_buffer(&mut self, type_: BufferType, usage: BufferUsage, data: BufferSource)
-> BufferId;
fn buffer_update(&mut self, buffer: BufferId, data: BufferSource);
/// Size of buffer in bytes

/// Size of buffer in bytes.
/// For 1 element, u16 buffer this will return 2.
fn buffer_size(&mut self, buffer: BufferId) -> usize;

/// Delete GPU buffer, leaving handle unmodified.
Expand Down

0 comments on commit 4b5fe80

Please sign in to comment.