pub struct Surface {
pub width: u32,
pub height: u32,
pub targets: Vec<Option<Vec<[u32; 4]>>>,
pub depth: Option<Vec<f32>>,
}Expand description
What a draw writes to: render targets by output register (width * height texels each, row by row, as the pixel
program’s output words) and the depth buffer.
Fields§
§width: u32Width of every target in pixels.
height: u32Height of every target in pixels.
targets: Vec<Option<Vec<[u32; 4]>>>By output register; None for a register the draw does not write.
depth: Option<Vec<f32>>width * height depths, when the state tests depth.
Trait Implementations§
impl StructuralPartialEq for Surface
Auto Trait Implementations§
impl Forget for Surface
impl Freeze for Surface
impl RefUnwindSafe for Surface
impl Send for Surface
impl Sync for Surface
impl Unpin for Surface
impl UnsafeUnpin for Surface
impl UnwindSafe for Surface
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more