Optimize forward rendering and add benchmark

Amp-Thread-ID: https://ampcode.com/threads/T-01a01380-b478-77d0-84a0-102880a5c5ae
Co-authored-by: Heaust Azure <heaust.azure@gmail.com>
This commit is contained in:
Amp
2026-08-20 14:36:51 +00:00
co-authored by heaust
parent 000bfd63bf
commit abfa428464
18 changed files with 390 additions and 97 deletions
+3 -3
View File
@@ -229,7 +229,7 @@ pub struct DepthAttachment {
pub store: String,
}
#[derive(Clone, Deserialize)]
#[derive(Clone, Deserialize, PartialEq, Eq)]
pub struct VertexBinding {
#[serde(default)]
pub slot: u32,
@@ -238,7 +238,7 @@ pub struct VertexBinding {
pub offset: u64,
}
#[derive(Clone, Deserialize)]
#[derive(Clone, Deserialize, PartialEq, Eq)]
pub struct IndexBinding {
pub resource: String,
#[serde(default = "index_format")]
@@ -247,7 +247,7 @@ pub struct IndexBinding {
pub offset: u64,
}
#[derive(Clone, Deserialize)]
#[derive(Clone, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Draw {
#[serde(default = "three")]