mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
* Add command buffer fill buffer method * Added test for buffer fill * Added image clear + test * image/buffer clear methods are now pure clear to zero * fix cargo clippy & int type issues * clear buffer alignment is now given by COPY_BUFFER_ALIGNMENT * joined buffer/image clear player tests * ImageSubresourceRange is now used in TextureViewDescriptor
37 lines
840 B
Plaintext
37 lines
840 B
Plaintext
(
|
|
features: (bits: 0x0000_0001_0000_0000),
|
|
expectations: [
|
|
(
|
|
name: "basic",
|
|
buffer: (index: 0, epoch: 1),
|
|
offset: 0,
|
|
data: Raw([
|
|
0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00,
|
|
]),
|
|
)
|
|
],
|
|
actions: [
|
|
CreateBuffer(
|
|
Id(0, 1, Empty),
|
|
(
|
|
label: None,
|
|
size: 16,
|
|
usage: (
|
|
bits: 41,
|
|
),
|
|
mapped_at_creation: false,
|
|
),
|
|
),
|
|
Submit(1, [
|
|
ClearBuffer(
|
|
dst: Id(0, 1, Empty),
|
|
offset: 4,
|
|
size: Some(8),
|
|
)
|
|
]),
|
|
],
|
|
)
|