mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
* Replace &[T] in descriptor structs with Cow<[T]> * Changed label fields to use Cow<'a, str> * Deduplicate types across the tracing API Introduce the ToStatic trait * Deduplicate trace::RenderBundleDescriptor * Remove ugly ToOwned bounds * Simplifiy Action variants * Make Clone bounds on type defs less verbose * Fix a error in play.rs * Remove ToStatic, and Make Action<'a> borrow descriptors instead
34 lines
728 B
Plaintext
34 lines
728 B
Plaintext
(
|
|
features: (bits: 0x0),
|
|
expectations: [
|
|
(
|
|
name: "basic",
|
|
buffer: (index: 0, epoch: 1),
|
|
offset: 0,
|
|
data: [0x00, 0x00, 0x80, 0xBF],
|
|
)
|
|
],
|
|
actions: [
|
|
CreateBuffer(
|
|
Id(0, 1, Empty),
|
|
(
|
|
label: "",
|
|
size: 16,
|
|
usage: (
|
|
bits: 41,
|
|
),
|
|
mapped_at_creation: false,
|
|
),
|
|
),
|
|
WriteBuffer(
|
|
id: Id(0, 1, Empty),
|
|
data: "data1.bin",
|
|
range: (
|
|
start: 0,
|
|
end: 16,
|
|
),
|
|
queued: true,
|
|
),
|
|
Submit(1, []),
|
|
],
|
|
) |