Add comments to DrawCmd

This commit is contained in:
toyboot4e 2020-09-24 03:23:37 +09:00
parent 132c749239
commit ee04e0b955

View File

@ -198,6 +198,7 @@ pub type DrawIdx = sys::ImDrawIdx;
#[derive(Copy, Clone, Debug, PartialEq)]
pub struct DrawCmdParams {
/// left, up, right, down
pub clip_rect: [f32; 4],
pub texture_id: TextureId,
pub vtx_offset: usize,
@ -207,6 +208,7 @@ pub struct DrawCmdParams {
/// A draw command
pub enum DrawCmd {
Elements {
/// The number of indices used for this draw command
count: usize,
cmd_params: DrawCmdParams,
},