overflow: hidden/scroll scissor support, remove depth

This commit is contained in:
Aleksander
2025-09-25 23:21:11 +02:00
parent 8f75d451e4
commit eb12a6a319
28 changed files with 299 additions and 182 deletions

View File

@@ -47,6 +47,7 @@ impl<T> WCommandBuffer<T> {
#[derive(Clone, Copy)]
pub enum WGfxClearMode {
Keep,
DontCare,
Clear([f32; 4]),
}
@@ -58,10 +59,12 @@ impl WCommandBuffer<CmdBufGfx> {
load_op: match &clear_mode {
WGfxClearMode::Keep => AttachmentLoadOp::Load,
WGfxClearMode::Clear(_) => AttachmentLoadOp::Clear,
WGfxClearMode::DontCare => AttachmentLoadOp::DontCare,
},
store_op: AttachmentStoreOp::Store,
clear_value: match &clear_mode {
WGfxClearMode::Keep => None,
WGfxClearMode::DontCare => None,
WGfxClearMode::Clear(color) => Some(ClearValue::Float(*color)),
},
..RenderingAttachmentInfo::image_view(render_target)